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
|
|
@ -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