simplified css classes for cleanliness

This commit is contained in:
2021-01-09 17:15:52 +01:00
parent 59d5ad5bd3
commit 9684c22da3
13 changed files with 63 additions and 45 deletions

View File

@@ -3,11 +3,8 @@
import "toastify-js/src/toastify.css";
import { Route, router } from "tinro";
router.subscribe((routeInfo) => {
// console.log(routeInfo.path);
window.scrollTo(0, 0);
});
// console.log($router.path);
// console.log(config);
if (config.prefersHashRouting) {
if (config.prefersHashRouting === true) {
router.useHashNavigation();
@@ -56,16 +53,22 @@
window.addEventListener("load", () => {
navigator.serviceWorker.register("/sw.js").then(
(registration) => {
console.log(`sw successful with scope: ${registration.scope}`);
// console.log(`sw successful with scope: ${registration.scope}`);
},
(err) => {
console.log(`sw failed: ${err}`);
// console.log(`sw failed: ${err}`);
}
);
});
}
</script>
<style>
.bg-gray-900 {
background-color: #121317;
}
</style>
<Route>
{#if $router.path === '/forgot_password'}
<Route path="/forgot_password">