mirror of
https://github.com/zadam/trilium.git
synced 2026-02-02 04:29:17 +01:00
fix(web-clipper): warning about offscreen permission in MV2
This commit is contained in:
@@ -2,7 +2,7 @@ import { defineConfig } from "wxt";
|
||||
|
||||
export default defineConfig({
|
||||
modules: ['@wxt-dev/auto-icons'],
|
||||
manifest: {
|
||||
manifest: ({ manifestVersion }) => ({
|
||||
name: "Trilium Web Clipper",
|
||||
description: "Save web clippings to Trilium Notes.",
|
||||
homepage_url: "https://docs.triliumnotes.org/user-guide/setup/web-clipper",
|
||||
@@ -14,8 +14,8 @@ export default defineConfig({
|
||||
"<all_urls>",
|
||||
"storage",
|
||||
"contextMenus",
|
||||
"offscreen"
|
||||
],
|
||||
manifestVersion === 3 && "offscreen"
|
||||
].filter(Boolean),
|
||||
browser_specific_settings: {
|
||||
gecko: {
|
||||
id: "{1410742d-b377-40e7-a9db-63dc9c6ec99c}"
|
||||
@@ -41,5 +41,5 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user