@@ -27,6 +27,12 @@
|
||||
storeName: "lfk_admin",
|
||||
description: "LfK! admin dashbaord",
|
||||
});
|
||||
window.onunhandledrejection = event => {
|
||||
if(event.reason.toString() == "Error: Unauthorized"){
|
||||
console.log("Found 1")
|
||||
localForage.clear();
|
||||
location.replace("/");
|
||||
}};
|
||||
//
|
||||
import Login from "./components/auth/Login.svelte";
|
||||
import Dashboard from "./components/dashboard/Dashboard.svelte";
|
||||
|
||||
Reference in New Issue
Block a user