diff --git a/scripts/build.sh b/scripts/build.sh index af15a73..4d44cb7 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -8,6 +8,8 @@ cp ./src/manifest.json ./dist cp ./static/favicon.ico ./dist cp ./src/service-worker.js ./dist +echo "$NEW_VERSION" >./dist/version + cp -r ./src/assets/images ./dist/images deno -A ./scripts/build.js diff --git a/src/service-worker.js b/src/service-worker.js index 3f2f137..0d5c91c 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -17,7 +17,7 @@ const checkForNewerVersion = (currentVersion) => { const version = await res.text(); if (currentVersion !== version.trim()) { self.registration.showNotification("✍️ MiroPad has been updated", { - body: `Version ${version} is available, refresh to update!`, + body: `MiroPad ${version} is available, refresh to update!`, }); clearInterval(intervalChecker); }