feat: abrir sistema dentro do app e usar ícones do raven

This commit is contained in:
Esdras Renan 2025-10-10 22:42:43 -03:00
parent ee6e32ca79
commit b1d334045d
2 changed files with 6 additions and 8 deletions

View file

@ -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() {