this supports asset caching + proper handling of the /env.js file (might have lead to config errors in previous versions)
This commit is contained in:
@@ -46,21 +46,21 @@
|
||||
import Tracks from "./components/Tracks.svelte";
|
||||
import TracksOverview from "./components/TracksOverview.svelte";
|
||||
import OrgDetail from "./components/OrgDetail.svelte";
|
||||
import Teams from "./components/Teams.svelte";
|
||||
import Teams from "./components/Teams.svelte";
|
||||
store.init();
|
||||
|
||||
// if ("serviceWorker" in navigator) {
|
||||
// window.addEventListener("load", () => {
|
||||
// navigator.serviceWorker.register("/sw.js").then(
|
||||
// (registration) => {
|
||||
// console.log(`sw successful with scope: ${registration.scope}`);
|
||||
// },
|
||||
// (err) => {
|
||||
// console.log(`sw failed: ${err}`);
|
||||
// }
|
||||
// );
|
||||
// });
|
||||
// }
|
||||
if ("serviceWorker" in navigator) {
|
||||
window.addEventListener("load", () => {
|
||||
navigator.serviceWorker.register("/sw.js").then(
|
||||
(registration) => {
|
||||
console.log(`sw successful with scope: ${registration.scope}`);
|
||||
},
|
||||
(err) => {
|
||||
console.log(`sw failed: ${err}`);
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<Route>
|
||||
@@ -98,7 +98,7 @@ import Teams from "./components/Teams.svelte";
|
||||
<Orgs />
|
||||
</Route>
|
||||
<Route path="/:orgid" let:params>
|
||||
<OrgDetail params={params}/>
|
||||
<OrgDetail {params} />
|
||||
</Route>
|
||||
</Route>
|
||||
<Route path="/about">
|
||||
@@ -110,7 +110,7 @@ import Teams from "./components/Teams.svelte";
|
||||
</Transition>
|
||||
<Footer />
|
||||
</Dashboard>
|
||||
{:else}
|
||||
{:else}
|
||||
<Login />
|
||||
{/if}
|
||||
{/if}
|
||||
</Route>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"by": "von",
|
||||
"cannot-reset-your-password-directly": "Schade. \nWir können das Passwort leider nicht direkt zurücksetzen.\nBitte sende uns eine Mail in der du deine Identität bestätigst.",
|
||||
"credits": "",
|
||||
"dashboard-greeting": "Willkommen",
|
||||
"dashboard-greeting": "Moin",
|
||||
"datatable": {
|
||||
"search": "🔍 Suche ...",
|
||||
"an_error_happened_while_fetching_the_data": "Beim Abrufen der Daten ist ein Fehler aufgetreten",
|
||||
|
||||
Reference in New Issue
Block a user