修改部分console.log

This commit is contained in:
nonameShijian 2024-02-16 19:08:45 +08:00
parent 57cf0e6d0d
commit 2e16ff18a1
2 changed files with 2 additions and 3 deletions

View File

@ -181,7 +181,6 @@ new Promise(resolve => {
let findServiceWorker = registrations.find(registration => {
return registration && registration.active && registration.active.scriptURL == `${scope}service-worker.js`;
});
console.log(registrations);
try {
const registration_1 = await navigator.serviceWorker.register(`${scope}service-worker.js`, {
updateViaCache: "all",

View File

@ -5,12 +5,12 @@ var ts;
importScripts('./game/typescript.js');
// @ts-ignore
if (typeof ts != 'undefined') {
console.log(ts);
console.log(`ts loaded`);
} else {
console.log(`ts undefined`);
}
console.log('version 2.2');
console.log('serviceWorker version 2.2');
self.addEventListener("install", (event) => {
// The promise that skipWaiting() returns can be safely ignored.