From 113ad247de9eed6f284e99ff2d1fa1bfe5e6b4e1 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 14 Nov 2025 10:49:31 +0800 Subject: [PATCH] fix: add missing 'const' keyword for CACHE_VERSION declaration --- assets/js/service-worker.js | 2 +- layouts/_partials/init/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/service-worker.js b/assets/js/service-worker.js index 5cd08417..287e36b8 100644 --- a/assets/js/service-worker.js +++ b/assets/js/service-worker.js @@ -2,7 +2,7 @@ * Service Worker * imported from https://github.com/HEIGE-PCloud/DoIt/blob/v0.2.11/src/js/sw.js */ -CACHE_VERSION = 1; +const CACHE_VERSION = 1; const BASE_CACHE_FILES = [ '/css/style.min.css', diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 77e9938d..a2d1965a 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20251113081914-96b2f5f8" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20251114024932-1ba03035" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}