changed paths to have vue3 as standard

This commit is contained in:
vabene1111
2025-01-14 18:18:13 +01:00
parent 3e55e04fbd
commit f4b1acb757
6 changed files with 39 additions and 33 deletions

View File

@@ -17,6 +17,8 @@
<meta name="robots" content="noindex,nofollow"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<link rel="manifest" crossorigin="use-credentials" href="{% url 'web_manifest' %}">
<link rel="icon" href="{{ theme_values.logo_color_svg }}">
<link rel="icon" href="{{ theme_values.logo_color_32 }}" sizes="32x32">
<link rel="icon" href="{{ theme_values.logo_color_128 }}" sizes="128x128">
@@ -40,6 +42,17 @@
<script type="application/javascript">
localStorage.setItem('BASE_PATH', "{% base_path request 'base' %}")
window.addEventListener("load", () => {
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("{% url 'service_worker' %}", {scope: "{% base_path request 'base' %}" + '/'}).then(function (reg) {
}).catch(function (err) {
console.warn('Error whilst registering service worker', err);
});
} else {
console.warn('service worker not in navigator');
}
});
</script>
</body>