mirror of
https://github.com/Harry-zklcdc/go-proxy-bingai.git
synced 2024-05-03 14:25:13 +08:00
fix: 🐛 sw version bug
This commit is contained in:
parent
71f161b580
commit
2f0915f3e2
@ -107,7 +107,7 @@ async function registerSW() {
|
||||
console.log('Service Worker 安装成功:', event);
|
||||
const newSWVersion = await wb.messageSW({ type: 'GET_VERSION' });
|
||||
if (newSWVersion !== oldSWVersion) {
|
||||
alert(`新版本 ${swVersion} 已就绪,刷新后即可体验 !`);
|
||||
alert(`新版本 ${newSWVersion} 已就绪,刷新后即可体验 !`);
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
@ -1,7 +1,7 @@
|
||||
// 引入workbox 框架
|
||||
importScripts('./js/sw/workbox-sw.js');
|
||||
|
||||
const SW_VERSION = 'v1.3.3';
|
||||
const SW_VERSION = 'v1.3.4';
|
||||
const CACHE_PREFIX = 'BingAI';
|
||||
|
||||
workbox.setConfig({ debug: false, logLevel: 'warn' });
|
||||
@ -56,7 +56,7 @@ workbox.precaching.precacheAndRoute([
|
||||
},
|
||||
{
|
||||
url: '/web/js/index.js',
|
||||
revision: '2023.05.06.15',
|
||||
revision: '2023.05.06.15.30',
|
||||
},
|
||||
// html
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user