Skip to content

Commit

Permalink
Merge pull request #117 from Suwayomi/main
Browse files Browse the repository at this point in the history
woops  fetchChapters
  • Loading branch information
Robonau authored Dec 19, 2023
2 parents 235f76b + a79dd7a commit da117bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/routes/(app)/manga/[MangaID]/(manga)/MangaActions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
import { getModalStore } from '@skeletonlabs/skeleton';
export let manga: GetMangaQuery['manga'];
export let fetchchapters: () => Promise<void>;
export let fetchChapters: () => Promise<void>;
const modalStore = getModalStore();
let loading = false;
async function refreshManga() {
loading = true;
await fetchchapters();
await fetchChapters();
loading = false;
}
</script>
Expand Down
6 changes: 5 additions & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ function respondGET(event: FetchEvent) {
const cache = await openCache;

// static assets/thumbnails, cache first
if (ASSETS.includes(url.pathname) || url.pathname.endsWith('thumbnail') || url.pathname.startsWith('/api/v1/extension/icon/')) {
if (
ASSETS.includes(url.pathname) ||
url.pathname.endsWith('thumbnail') ||
url.pathname.startsWith('/api/v1/extension/icon/')
) {
const cachedResponse = await cache.match(event.request);
if (cachedResponse) {
return cachedResponse;
Expand Down

0 comments on commit da117bc

Please sign in to comment.