From de38196a775edac9e58a6091f52e46c11b8a582a Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 8 Nov 2025 19:56:46 +0100 Subject: [PATCH] fix player not accessible when using mv3 --- wxt.config.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wxt.config.ts b/wxt.config.ts index f8774d1..6a2d364 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -27,7 +27,17 @@ export default defineConfig({ } : undefined, permissions: ['storage', ...(manifestVersion === 2 ? ['webRequest', 'webRequestBlocking', ''] : [])], - optional_permissions: ['nativeMessaging'] + optional_permissions: ['nativeMessaging'], + web_accessible_resources: [ + { + resources: ['player.html'], + // TODO: Replace this with all hosts domains if target manifest version is 3. + // This isn't working atm because importing '@/lib/host' fails. Ahhhh I love the whole fucking JS/TS + // environment. Maybe I'm also overlooking something and the fix is easy, but that itsn't working out of the + // box is once again terrible DX + matches: [''] + } + ] }), zip: { artifactTemplate: '{{name}}-{{version}}-{{manifestVersion}}.zip'