File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,9 +95,7 @@ window.wplf = {
9595} ;
9696
9797var main = function ( ) {
98- document . addEventListener ( "DOMContentLoaded" , function ( ) {
99- [ ] . forEach . call ( document . querySelectorAll ( ".libre-form" ) , window . wplf . attach ) ;
100- } ) ;
98+ [ ] . forEach . call ( document . querySelectorAll ( ".libre-form" ) , window . wplf . attach ) ;
10199} ;
102100
103101var dependencies = [ ] ;
@@ -110,7 +108,6 @@ if (!window.Promise) {
110108 dependencies . push ( 'Promise' ) ;
111109}
112110
113- initialize ( dependencies , main ) ;
114111
115112function initialize ( dependencies , app ) {
116113 var dependency_count = dependencies . length ;
@@ -145,3 +142,7 @@ function initialize(dependencies, app) {
145142
146143 run_when_ready ( ) ;
147144}
145+
146+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
147+ initialize ( dependencies , main ) ;
148+ } ) ;
You can’t perform that action at this time.
0 commit comments