feat: abrir sistema dentro do app e usar ícones do raven
This commit is contained in:
parent
ee6e32ca79
commit
b1d334045d
2 changed files with 6 additions and 8 deletions
|
|
@ -16,7 +16,8 @@
|
|||
"title": "Raven",
|
||||
"width": 1100,
|
||||
"height": 720,
|
||||
"resizable": true
|
||||
"resizable": true,
|
||||
"icon": "icons/icon.png"
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
|
|
@ -40,6 +41,9 @@
|
|||
"nsis"
|
||||
],
|
||||
"icon": [
|
||||
"icons/icon.ico",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.png",
|
||||
"icons/Raven.png"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -221,13 +221,7 @@ function App() {
|
|||
async function openSystem() {
|
||||
if (!token || !config) return
|
||||
const url = `${resolvedAppUrl}/machines/handshake?token=${encodeURIComponent(token)}`
|
||||
try {
|
||||
// open in default browser; fallback to in-webview
|
||||
const { openUrl } = await import("@tauri-apps/plugin-opener")
|
||||
await openUrl(url)
|
||||
} catch {
|
||||
window.location.replace(url)
|
||||
}
|
||||
window.location.href = url
|
||||
}
|
||||
|
||||
async function reprovision() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue