Skip to content

Commit bab7f59

Browse files
authored
fix(fragments/base): enable allowlist>shell>open (#254)
* fix(fragments/base): enable `allowlist>shell>open` * fmt
1 parent 76bcaa3 commit bab7f59

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.changes/open-allowlist.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-tauri-app": "patch"
3+
"create-tauri-app-js": "patch"
4+
---
5+
6+
Enable `allowlist > shell > open` in the generated project's `tauri.conf.json` so clicking to open external links would work.
7+

packages/cli/fragments/base/src-tauri/tauri.conf.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
},
1313
"tauri": {
1414
"allowlist": {
15-
"all": false
15+
"all": false,
16+
"shell": {
17+
"all": false,
18+
"open": true
19+
}
1620
},
1721
"bundle": {
1822
"active": true,

0 commit comments

Comments
 (0)