diff --git a/entrypoints/injected.ts b/entrypoints/injected.ts index f17a240..a8026ba 100644 --- a/entrypoints/injected.ts +++ b/entrypoints/injected.ts @@ -1,8 +1,8 @@ export default defineUnlistedScript({ main() { - window.postMessage({ - key: 'tiddlywiki-send-message', - message: 'hello', - }); + // window.postMessage({ + // key: 'tiddlywiki-send-message', + // message: 'hello', + // }); }, }); diff --git a/package.json b/package.json index 7a711af..74d2c23 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "usewiki2", "description": "Convert HTML to Markdown, and save to your computer, support nodejs tiddlywiki", "private": true, - "version": "2.6.0", + "version": "2.6.1", "type": "module", "scripts": { "dev": "wxt", diff --git a/wxt.config.ts b/wxt.config.ts index b7958a3..a420732 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -74,8 +74,9 @@ export default defineConfig({ content_security_policy: { extension_pages: "script-src 'self'; object-src 'self'", }, - // host_permissions: [''], - host_permissions: ['https://*/*'], + // NOTE: 这会影响网络请求,比如获取 status, 开发环境下无影响 + host_permissions: [''], + // host_permissions: ['https://*/*'], // optional_permissions: ['https://google.com/**', 'https://bing.com/'], // https://developer.chrome.com/docs/extensions/reference/api/sidePanel // sidebar_action: {