Added PWA support
This commit is contained in:
1 parent
27d92c55e5
commit
812884de1a
16 files changed
+926
-89
No files matched your search
+11
@@ -3,6 +3,16 @@ const { currentSong, isPlaying } = usePlayer()
|
||||
const debugView = useCookie("DEBUG_VIEW")
|
||||
const debugViewEnabled = computed(() => String(debugView.value ?? "") === "1")
|
||||
|
||||
useHead({
|
||||
meta: [
|
||||
{ name: "theme-color", content: "#09090b" },
|
||||
{ name: "viewport", content: "width=device-width, initial-scale=1, viewport-fit=cover" },
|
||||
{ name: "apple-mobile-web-app-capable", content: "yes" },
|
||||
{ name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" },
|
||||
],
|
||||
link: [{ rel: "apple-touch-icon", href: "/icons/apple-touch-icon.png" }],
|
||||
})
|
||||
|
||||
useHead(
|
||||
computed(() => ({
|
||||
titleTemplate:
|
||||
@@ -14,6 +24,7 @@ useHead(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtPwaManifest />
|
||||
<ToastContainer />
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
|
||||
Reference in new issue
Block a user