token auth

This commit is contained in:
Andrew Gundersen 2022-02-09 08:31:58 -06:00
commit 1755c670d6
9 changed files with 41 additions and 32 deletions

View file

@ -32,12 +32,13 @@ const App =
<Splash v-else />`
}
window.mainApi.on("set-account", (account_) => {
account.value = account_;
window.mainApi.on("set-account", (value, reason) => {
if (reason) alert(reason);
account.value = value;
});
export default App;
export { account };
// Is called when window is about to close or reload
window.onbeforeunload = () => console.log("beforeunload");
window.onbeforeunload = () => console.log("beforeunload");

View file

@ -21,4 +21,4 @@ const onDrop = async (e) => {
});
}
export default onDrop;
export default onDrop;