From e52b30b65634b17ea136dee0774671a1f55ee9b4 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 21 Jan 2024 14:12:45 +0100 Subject: [PATCH] add explicit domains --- package.json | 4 +++- src/contents/movie-web.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6226116..364c571 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,9 @@ "tabs" ], "host_permissions": [ - "" + "", + "https://dev.movie-web.app/*", + "https://movie-web.app/*" ], "browser_specific_settings": { "gecko": { diff --git a/src/contents/movie-web.ts b/src/contents/movie-web.ts index aeddda5..263895d 100644 --- a/src/contents/movie-web.ts +++ b/src/contents/movie-web.ts @@ -2,7 +2,8 @@ import { relayMessage } from '@plasmohq/messaging'; import type { PlasmoCSConfig } from 'plasmo'; export const config: PlasmoCSConfig = { - matches: [''], + // works for chrome, but not for firefox, so we add explicit domains for firefox + matches: ['', 'https://dev.movie-web.app/*', 'https://movie-web.app/*'], }; relayMessage({