typo
This commit is contained in:
parent
c34b054642
commit
f35bf6a2a5
|
@ -30,7 +30,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('message', ({data, source, origin}) => {
|
window.addEventListener('message', ({data, source, origin}) => {
|
||||||
// Some browser don't reveal `source` to extensions e.g. Firefox
|
// Some browsers don't reveal `source` to extensions e.g. Firefox
|
||||||
if (data && (source ? source === window : origin === ORIGIN)) {
|
if (data && (source ? source === window : origin === ORIGIN)) {
|
||||||
const fn = HANDLERS[data.type];
|
const fn = HANDLERS[data.type];
|
||||||
if (fn) fn(data);
|
if (fn) fn(data);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user