diff --git a/apps/extension/src/senders/validate.ts b/apps/extension/src/senders/validate.ts index ddf3cbd2..eb882ec8 100644 --- a/apps/extension/src/senders/validate.ts +++ b/apps/extension/src/senders/validate.ts @@ -35,12 +35,7 @@ export const assertValidSender = (sender?: chrome.runtime.MessageSender) => { throw new Error('Sender origin is invalid'); } - if ( - !( - parsedOrigin.protocol in ValidProtocol || - (globalThis.__DEV__ && isHttpLocalhost(parsedOrigin)) - ) - ) { + if (!(parsedOrigin.protocol in ValidProtocol || isHttpLocalhost(parsedOrigin))) { throw new Error(`Sender protocol is not ${Object.values(ValidProtocol).join(',')}`); }