* fix(pdf): improve PDF blob handling and improve viewer destruction logic * fix(pdf): PDF annotation saving logic and improve responsive design for mobile * fix(pdf): improve PDF fetching (once again) and caching logic to improve performance and reduce network requests * fix(pdf): hide footer and notification elements in PDF viewer * fix(pdf): improve loading behavior and improve annotation persistence logic * fix(pdf): improve PDF annotation persistence with retry mechanism and logging * fix(pdf): improve PDF annotation saving with raw fetch and improved error handling * fix(pdf): cap highlight opacity and adjust rendering for small viewports
50 lines
1008 B
JSON
50 lines
1008 B
JSON
{
|
|
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
|
|
"index": "/index.html",
|
|
"navigationUrls": [
|
|
"/**",
|
|
"!/api/**",
|
|
"!/komga/**",
|
|
"!/assets/embedpdf-frame.html"
|
|
],
|
|
"assetGroups": [
|
|
{
|
|
"name": "app",
|
|
"installMode": "prefetch",
|
|
"resources": {
|
|
"files": [
|
|
"/favicon.ico",
|
|
"/assets/favicon.svg",
|
|
"/index.csr.html",
|
|
"/index.html",
|
|
"/manifest.webmanifest",
|
|
"/*.css",
|
|
"/*.js"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "assets",
|
|
"installMode": "lazy",
|
|
"updateMode": "prefetch",
|
|
"resources": {
|
|
"files": [
|
|
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"dataGroups": [
|
|
{
|
|
"name": "api-passthrough",
|
|
"urls": ["/api/**"],
|
|
"cacheConfig": {
|
|
"strategy": "freshness",
|
|
"maxSize": 0,
|
|
"maxAge": "0u",
|
|
"timeout": "0u"
|
|
}
|
|
}
|
|
]
|
|
}
|