diff --git a/content/install-hook-openusercss.js b/content/install-hook-openusercss.js index 70e74a19..e9699073 100644 --- a/content/install-hook-openusercss.js +++ b/content/install-hook-openusercss.js @@ -8,11 +8,9 @@ ]; const sendPostMessage = message => { - allowedOrigins.forEach(origin => { - if (origin === location.origin) { - window.postMessage(message, origin); - } - }); + if (allowedOrigins.includes(location.origin)) { + window.postMessage(message, location.origin); + } }; const askHandshake = () => {