修改部分console.log
This commit is contained in:
parent
57cf0e6d0d
commit
2e16ff18a1
|
@ -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",
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue