mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
chore: append manifest in edge file only in prod env
This commit is contained in:
@@ -17,10 +17,6 @@
|
||||
href='/favicon.png'
|
||||
type='image/png'
|
||||
/>
|
||||
<link
|
||||
rel='manifest'
|
||||
href='/assets/manifest.webmanifest'
|
||||
/>
|
||||
<link
|
||||
rel='apple-touch-icon'
|
||||
href='/favicon.png'
|
||||
@@ -30,6 +26,11 @@
|
||||
href='/favicon.png'
|
||||
/>
|
||||
<title inertia>MyLinks</title>
|
||||
@if(nodeEnv === 'production')
|
||||
<link
|
||||
rel='manifest'
|
||||
href='/assets/manifest.webmanifest'
|
||||
/>
|
||||
<script defer>
|
||||
if('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
@@ -37,6 +38,7 @@
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@routes()
|
||||
@inertiaHead()
|
||||
|
||||
Reference in New Issue
Block a user