2023-03-27 18:41:44 +09:00
|
|
|
const CHATGPT_NEXT_WEB_CACHE = "chatgpt-next-web-cache";
|
|
|
|
|
2023-03-30 02:45:26 +09:00
|
|
|
self.addEventListener("activate", function (event) {
|
|
|
|
console.log("ServiceWorker activated.");
|
2023-03-27 18:41:44 +09:00
|
|
|
});
|
|
|
|
|
2023-10-26 01:06:09 +09:00
|
|
|
self.addEventListener("install", function (event) {
|
|
|
|
event.waitUntil(
|
|
|
|
caches.open(CHATGPT_NEXT_WEB_CACHE).then(function (cache) {
|
|
|
|
return cache.addAll([]);
|
|
|
|
}),
|
|
|
|
);
|
2023-03-27 18:41:44 +09:00
|
|
|
});
|
2023-04-02 21:28:18 +09:00
|
|
|
|
2023-10-26 01:06:09 +09:00
|
|
|
self.addEventListener("fetch", (e) => {});
|