提交 5088eb3c 编写于 作者: J Johannes Rieken

lipstick

上级 360e4e4d
......@@ -38,12 +38,7 @@ const _tag = '586d4b79-f5c4-4aff-9a14-2139ddfbb486';
return value;
}
// try the network (prefetch or fetch)
const res = await event.preloadResponse;
if (res) {
return res;
} else {
return fetch(event.request);
}
return await event.preloadResponse || await fetch(event.request);
}));
});
self.addEventListener('install', (event: any) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册