We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f89204 commit 55ad2c5Copy full SHA for 55ad2c5
src/utils.js
@@ -5,6 +5,8 @@
5
let globalObj = typeof window === 'undefined' ? globalThis : window
6
let Error = globalObj.Error
7
let messageSecret
8
+// Capture prototype to prevent overloading
9
+const Set = globalObj.Set
10
11
// save a reference to original CustomEvent amd dispatchEvent so they can't be overriden to forge messages
12
export const OriginalCustomEvent = typeof CustomEvent === 'undefined' ? null : CustomEvent
0 commit comments