Skip to content

Commit

Permalink
Fid update and csp
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jan 8, 2025
1 parent 41dae42 commit 6baece0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/capabilities/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"clipboard-manager:allow-write-text",
"core:app:allow-app-show",
"core:app:allow-app-hide",
"os:default"
"os:default",
"core:window:allow-destroy"
]
}
2 changes: 1 addition & 1 deletion core/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}
],
"security": {
"csp": "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'; script-src 'unsafe-eval'; connect-src ipc: http://ipc.localhost tauri: https://*.posthog.com"
"csp": "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'; script-src 'unsafe-eval'"
}
}
}
4 changes: 2 additions & 2 deletions interface/utils/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export const checkForUpdate = async () => {
}

export const installUpdate = async () => {
const system = os.type().toString()
const system = os.type()

if (system !== "Windows_NT") {
if (system !== "windows") {
open("https://authme.levminer.com/#downloads")
} else {
document.querySelector(".updateText").textContent = "Downloading update... Please wait!"
Expand Down

0 comments on commit 6baece0

Please sign in to comment.