mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-13 19:13:42 +02:00
- NETWATCH 404 pages removed - time for something new - Compartmentalized CSS fonts and JS script files - Streamlined cache manifest for ServiceWorker - Added AVIF images, replaced PNG fallback with WebP fallback - Changed favicon color
6 lines
133 B
JavaScript
6 lines
133 B
JavaScript
// Register SW if supported by browser
|
|
if(navigator.serviceWorker) {
|
|
navigator.serviceWorker.register("sw.js",{
|
|
scope: "/"
|
|
});
|
|
}
|