edit roter with scrept

This issue has been tracked since 2021-03-25.

I want make Like this

if (!localStorage.getItem("key")) {
  Route.to("/login");
  console.log("login need")
} else if (window.location.pathname === "/login") {
  Route.to("/")
}
More Details About Repo
Owner Name EmilTholin
Repo Name svelte-routing
Full Name EmilTholin/svelte-routing
Language JavaScript
Created Date 2017-11-28
Updated Date 2022-12-03
Star Count 1711
Watcher Count 21
Fork Count 151
Issue Count 59

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date