From 49b5643b447d9c765f7a5d9c6264f567d3cafb74 Mon Sep 17 00:00:00 2001 From: D <89845150+ScadeBlock@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:11:25 +0700 Subject: [PATCH] Update sw.js --- docs/sw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sw.js b/docs/sw.js index d582943..5535c62 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1,9 +1,9 @@ importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js'); const filesToCache = [ - {url: '/index.html', revision: '102724.3'}, + {url: './index.html', revision: '102724.3'}, {url: 'https://cdn.jsdelivr.net/gh/ScadeBlock/DemonJS@main/docs/dist/bundle.min.js', revision: '102724.3'}, {url: 'https://cdn.jsdelivr.net/gh/ScadeBlock/DemonJS@main/docs/dist/source-map.js', revision: '102724.3'}, - {url: '/dist/ic.png', revision: '102724.3'} + {url: './dist/ic.png', revision: '102724.3'} ]; workbox.precaching.precacheAndRoute(filesToCache);