@seamlessdocs/payment-modals 1.0.60 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/payment-modals.js +10 -10
- package/package.json +1 -1
- package/src/shims.js +4 -4
package/package.json
CHANGED
package/src/shims.js
CHANGED
|
@@ -11,14 +11,14 @@ export function getNativeEventConstructor() {
|
|
|
11
11
|
// This function is used to restore the native Event constructor
|
|
12
12
|
// when the Event constructor is overridden by mootools
|
|
13
13
|
export function restoreNativeEventConstructor() {
|
|
14
|
-
|
|
14
|
+
global.ExtendedEvent = global.Event;
|
|
15
15
|
const nativeEvent = getNativeEventConstructor();
|
|
16
|
-
|
|
16
|
+
global.Event = nativeEvent;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// This function is used to restore the Extended Event constructor
|
|
20
20
|
// so that mootools can continue to work
|
|
21
21
|
export function restoreExtendedEventConstructor() {
|
|
22
|
-
|
|
23
|
-
delete
|
|
22
|
+
global.Event = global.ExtendedEvent;
|
|
23
|
+
delete global.ExtendedEvent;
|
|
24
24
|
}
|