This commit is contained in:
tophf 2021-07-30 17:28:35 +03:00
parent c34b054642
commit f35bf6a2a5

View File

@ -30,7 +30,7 @@
});
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)) {
const fn = HANDLERS[data.type];
if (fn) fn(data);