added shipping note service worker
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "thetool Lieferscheine",
|
||||
"short_name": "Lieferscheine",
|
||||
"description": "Lieferscheine für thetool.",
|
||||
"start_url": "/WarehouseShippingNote/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#ffffff",
|
||||
"theme_color": "#000000",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/assets/images/pwa-thetool-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/assets/images/pwa-thetool-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -460,3 +460,15 @@ Vue.component('warehouse-shipping-note', {
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/WarehouseShippingNote/sw', { scope: '/' })
|
||||
.then(registration => {
|
||||
console.log('Patching PWA Service Worker registered with scope:', registration.scope);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Patching PWA Service Worker registration failed:', error);
|
||||
});
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user