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