chore: resolve lint warnings with targeted type and rule fixes
This commit is contained in:
@@ -12,7 +12,6 @@ const OFFLINE_PAGE = "/offline.html";
|
||||
const PRECACHE_ASSETS = [OFFLINE_PAGE, "/manifest.json"];
|
||||
|
||||
// Cache size limits
|
||||
const IMAGES_CACHE_MAX_SIZE = 100 * 1024 * 1024; // 100MB
|
||||
const IMAGES_CACHE_MAX_ENTRIES = 500;
|
||||
|
||||
// ============================================================================
|
||||
@@ -45,11 +44,6 @@ function isBookPageRequest(url) {
|
||||
);
|
||||
}
|
||||
|
||||
function isBooksManualCache(url) {
|
||||
// Check if this is a request that should be handled by the books manual cache
|
||||
return url.includes("/api/komga/images/books/") && url.includes("/pages");
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Client Communication
|
||||
// ============================================================================
|
||||
@@ -270,7 +264,7 @@ self.addEventListener("install", (event) => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log("[SW] Precached assets");
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
|
||||
console.error("[SW] Precache failed:", error);
|
||||
}
|
||||
await self.skipWaiting();
|
||||
|
||||
Reference in New Issue
Block a user