feat: Added QR login

fix: Fixed webview for windows builds
This commit is contained in:
Simeon Radivoev 2026-03-03 15:51:47 +02:00
parent 01b91aa48c
commit 4739b89933
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
26 changed files with 545 additions and 83 deletions

View file

@ -3,14 +3,15 @@ import { host } from "../utils/host";
export default function (webview: { navigate: (url: string) => void; run: () => void; destroy: () => void; })
{
self.addEventListener('message', (e) =>
self.onmessage = (e) =>
{
console.log("Terminate");
if (e.data === 'exit')
{
webview.destroy();
process.exit();
}
});
};
webview.navigate(SERVER_URL(host));
webview.run();
}