Skip to content

Commit

Permalink
fix: update host_permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Apr 4, 2024
1 parent 253bb43 commit 141803d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions entrypoints/injected.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default defineUnlistedScript({
main() {
window.postMessage({
key: 'tiddlywiki-send-message',
message: 'hello',
});
// window.postMessage({
// key: 'tiddlywiki-send-message',
// message: 'hello',
// });
},
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ export default defineConfig({
content_security_policy: {
extension_pages: "script-src 'self'; object-src 'self'",
},
// host_permissions: ['<all_urls>'],
host_permissions: ['https://*/*'],
// NOTE: 这会影响网络请求,比如获取 status, 开发环境下无影响
host_permissions: ['<all_urls>'],
// host_permissions: ['https://*/*'],
// optional_permissions: ['https://google.com/**', 'https://bing.com/'],
// https://developer.chrome.com/docs/extensions/reference/api/sidePanel
// sidebar_action: {
Expand Down

0 comments on commit 141803d

Please sign in to comment.