mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 07:30:43 +08:00
using compressImage when serviceWorker register error
This commit is contained in:
@@ -15,6 +15,7 @@ if ('serviceWorker' in navigator) {
|
||||
registration.update().then(res => {
|
||||
console.log('ServiceWorker registration update: ', res);
|
||||
});
|
||||
window._SW_ENABLED = true
|
||||
}, function (err) {
|
||||
console.error('ServiceWorker registration failed: ', err);
|
||||
});
|
||||
|
Reference in New Issue
Block a user