File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,5 @@ document.addEventListener('DOMContentLoaded', () => {
55
55
// }
56
56
57
57
// Initialize and populate sticky form.
58
- window . urlformjs . Init ( FormParameters , FormOptions ) ;
59
- window . urlformjs . PopulateFromURI ( ) ;
58
+ URLForm . PopulateFromURI ( URLForm . Init ( FormParameters , FormOptions ) ) ;
60
59
} ) ;
Original file line number Diff line number Diff line change @@ -279,13 +279,13 @@ function Init(params, formOptions) {
279
279
formOpt . FormParameters = params
280
280
formOpt . ShareURLBtnElement = document . querySelector ( formOpt . shareURLBtn ) ;
281
281
if ( formOpt . ShareURLBtnElement != null ) {
282
- formOpt . ShareURLBtnElement . addEventListener ( 'click' , ( ) => shareURI ( ) ) ; // Must be anonymous, otherwise passes pointer event object.
282
+ formOpt . ShareURLBtnElement . addEventListener ( 'click' , ( ) => shareURI ( formOpt ) ) ; // Must be anonymous, otherwise passes pointer event object.
283
283
}
284
284
formOpt . ClearBtnElement = document . querySelector ( formOpt . clearBtn ) ;
285
285
if ( formOpt . ClearBtnElement != null ) {
286
286
formOpt . ClearBtnElement . addEventListener ( 'click' , ( ) => {
287
- Clear ( )
288
- shareURI ( ) ;
287
+ Clear ( formOpt ) ;
288
+ shareURI ( formOpt ) ;
289
289
} ) ;
290
290
}
291
291
if ( ! isEmpty ( formOpt . formID ) ) {
You can’t perform that action at this time.
0 commit comments