Skip to content

Commit 55ad2c5

Browse files
Capture Set for utils (#424)
1 parent 1f89204 commit 55ad2c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
let globalObj = typeof window === 'undefined' ? globalThis : window
66
let Error = globalObj.Error
77
let messageSecret
8+
// Capture prototype to prevent overloading
9+
const Set = globalObj.Set
810

911
// save a reference to original CustomEvent amd dispatchEvent so they can't be overriden to forge messages
1012
export const OriginalCustomEvent = typeof CustomEvent === 'undefined' ? null : CustomEvent

0 commit comments

Comments
 (0)