{:else}
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
{/if}
{/if}
diff --git a/src/routes/(app)/browse/extensions/+page.svelte b/src/routes/(app)/browse/extensions/+page.svelte
index ff0c223..b858655 100644
--- a/src/routes/(app)/browse/extensions/+page.svelte
+++ b/src/routes/(app)/browse/extensions/+page.svelte
@@ -54,7 +54,7 @@
extensions = queryState({
client,
query: getExtensions,
- variables: { isNsfw: gmState.nsfw ? null : false }
+ variables: { isNsfw: gmState.value.nsfw ? null : false }
});
}
diff --git a/src/routes/(app)/browse/extensions/+page.ts b/src/routes/(app)/browse/extensions/+page.ts
new file mode 100644
index 0000000..54bcc9d
--- /dev/null
+++ b/src/routes/(app)/browse/extensions/+page.ts
@@ -0,0 +1,26 @@
+// Copyright (c) 2024 Contributors to the Suwayomi project
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at https://mozilla.org/MPL/2.0/.
+
+import { browser } from '$app/environment';
+import { getExtensions } from '$lib/gql/Queries';
+import { gmState } from '$lib/simpleStores.svelte';
+import type { PageLoad } from './$types';
+
+export const load: PageLoad = ({ fetch }) => {
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ getExtensions,
+ { isNsfw: gmState.value.nsfw ? null : false },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
+};
diff --git a/src/routes/(app)/browse/globalSearch.svelte b/src/routes/(app)/browse/globalSearch.svelte
index d439a8f..8cdf279 100644
--- a/src/routes/(app)/browse/globalSearch.svelte
+++ b/src/routes/(app)/browse/globalSearch.svelte
@@ -48,7 +48,7 @@
const client = getContextClient();
client
- .query(getSources, { isNsfw: gmState.nsfw ? null : false })
+ .query(getSources, { isNsfw: gmState.value.nsfw ? null : false })
.toPromise()
.then((ee) => {
rawSources.update((e) => {
@@ -214,12 +214,13 @@
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
diff --git a/src/routes/(app)/browse/globalsearch/+page.ts b/src/routes/(app)/browse/globalsearch/+page.ts
new file mode 100644
index 0000000..3238d4e
--- /dev/null
+++ b/src/routes/(app)/browse/globalsearch/+page.ts
@@ -0,0 +1,26 @@
+// Copyright (c) 2024 Contributors to the Suwayomi project
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at https://mozilla.org/MPL/2.0/.
+
+import { browser } from '$app/environment';
+import { getSources } from '$lib/gql/Queries';
+import { gmState } from '$lib/simpleStores.svelte';
+import type { PageLoad } from './$types';
+
+export const load: PageLoad = ({ fetch }) => {
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ getSources,
+ { isNsfw: gmState.value.nsfw ? null : false },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
+};
diff --git a/src/routes/(app)/browse/migrate/+page.ts b/src/routes/(app)/browse/migrate/+page.ts
new file mode 100644
index 0000000..1c8a7af
--- /dev/null
+++ b/src/routes/(app)/browse/migrate/+page.ts
@@ -0,0 +1,25 @@
+// Copyright (c) 2024 Contributors to the Suwayomi project
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at https://mozilla.org/MPL/2.0/.
+import { browser } from '$app/environment';
+import { sourcesMigration } from '$lib/gql/Queries';
+import type { PageLoad } from './$types';
+
+export const load: PageLoad = ({ params, fetch }) => {
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ sourcesMigration,
+ {},
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
+ return params;
+};
diff --git a/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.ts b/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.ts
index 825fa8a..93b6e35 100644
--- a/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.ts
+++ b/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.ts
@@ -6,12 +6,37 @@
import { error } from '@sveltejs/kit';
import type { PageLoad } from './$types';
+import { browser } from '$app/environment';
+import { getManga, getSources } from '$lib/gql/Queries';
+import { gmState } from '$lib/simpleStores.svelte';
-export const load: PageLoad = ({ params }) => {
+export const load: PageLoad = ({ params, fetch }) => {
const MangaID = parseInt(params.MangaID);
if (isNaN(MangaID)) {
error(400, 'MangaID should be a number');
}
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ getManga,
+ { id: MangaID },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ mod.client
+ .query(
+ getSources,
+ { isNsfw: gmState.value.nsfw ? null : false },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
return {
MangaID
};
diff --git a/src/routes/(app)/browse/migrate/source/[SourceID]/+page.svelte b/src/routes/(app)/browse/migrate/source/[SourceID]/+page.svelte
index eec41af..402063a 100644
--- a/src/routes/(app)/browse/migrate/source/[SourceID]/+page.svelte
+++ b/src/routes/(app)/browse/migrate/source/[SourceID]/+page.svelte
@@ -51,10 +51,10 @@
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
@@ -85,10 +85,11 @@
- {#if gmState.Display === display.Compact}
+ {#if gmState.value.Display === display.Compact}
@@ -101,7 +102,7 @@
{/if}
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
{/if}
- {#if !intersecting && gmState.Display === display.Comfortable}
+ {#if !intersecting && gmState.value.Display === display.Comfortable}
{/if}
{/snippet}
diff --git a/src/routes/(app)/browse/migrate/source/[SourceID]/+page.ts b/src/routes/(app)/browse/migrate/source/[SourceID]/+page.ts
index 5027a95..0bfea21 100644
--- a/src/routes/(app)/browse/migrate/source/[SourceID]/+page.ts
+++ b/src/routes/(app)/browse/migrate/source/[SourceID]/+page.ts
@@ -4,8 +4,32 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+import { browser } from '$app/environment';
+import { sourceMigrationManga, sourceMigrationSource } from '$lib/gql/Queries';
import type { PageLoad } from './$types';
-export const load: PageLoad = ({ params }) => {
+export const load: PageLoad = ({ params, fetch }) => {
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ sourceMigrationManga,
+ { sourceId: params.SourceID },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ mod.client
+ .query(
+ sourceMigrationSource,
+ { sourceId: params.SourceID },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
return params;
};
diff --git a/src/routes/(app)/browse/source/[sourceID]/+layout.ts b/src/routes/(app)/browse/source/[sourceID]/+layout.ts
index b0c49be..8c51cf3 100644
--- a/src/routes/(app)/browse/source/[sourceID]/+layout.ts
+++ b/src/routes/(app)/browse/source/[sourceID]/+layout.ts
@@ -5,7 +5,22 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
import type { LayoutLoad } from './$types';
+import { browser } from '$app/environment';
+import { getSource } from '$lib/gql/Queries';
-export const load: LayoutLoad = ({ params }) => {
+export const load: LayoutLoad = ({ params, fetch }) => {
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ getSource,
+ { id: params.sourceID },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
return { ...params };
};
diff --git a/src/routes/(app)/browse/source/[sourceID]/Grid.svelte b/src/routes/(app)/browse/source/[sourceID]/Grid.svelte
index 96d6cb5..79dc8a3 100644
--- a/src/routes/(app)/browse/source/[sourceID]/Grid.svelte
+++ b/src/routes/(app)/browse/source/[sourceID]/Grid.svelte
@@ -148,10 +148,11 @@
- {#if gmState.Display === display.Compact}
+ {#if gmState.value.Display === display.Compact}
@@ -171,7 +172,7 @@
{/if}
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
{/if}
- {#if !intersecting && gmState.Display === display.Comfortable}
+ {#if !intersecting && gmState.value.Display === display.Comfortable}
{/if}
{/snippet}
@@ -205,10 +206,10 @@
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
diff --git a/src/routes/(app)/browse/sources/+page.svelte b/src/routes/(app)/browse/sources/+page.svelte
index 9a8680c..6f72a7a 100644
--- a/src/routes/(app)/browse/sources/+page.svelte
+++ b/src/routes/(app)/browse/sources/+page.svelte
@@ -32,7 +32,7 @@
const sources = queryState({
client,
query: getSources,
- variables: { isNsfw: gmState.nsfw ? null : false }
+ variables: { isNsfw: gmState.value.nsfw ? null : false }
});
const query = queryParam('q', ssp.string(), { pushHistory: false });
diff --git a/src/routes/(app)/browse/sources/+page.ts b/src/routes/(app)/browse/sources/+page.ts
new file mode 100644
index 0000000..0c79660
--- /dev/null
+++ b/src/routes/(app)/browse/sources/+page.ts
@@ -0,0 +1,26 @@
+// Copyright (c) 2024 Contributors to the Suwayomi project
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at https://mozilla.org/MPL/2.0/.
+import type { PageLoad } from './$types';
+import { browser } from '$app/environment';
+import { getSources } from '$lib/gql/Queries';
+import { gmState } from '$lib/simpleStores.svelte';
+
+export const load: PageLoad = ({ params, fetch }) => {
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ getSources,
+ { isNsfw: gmState.value.nsfw ? null : false },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
+ return { ...params };
+};
diff --git a/src/routes/(app)/history/+page.svelte b/src/routes/(app)/history/+page.svelte
index 05d247e..54ed3ba 100644
--- a/src/routes/(app)/history/+page.svelte
+++ b/src/routes/(app)/history/+page.svelte
@@ -55,10 +55,10 @@
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
@@ -91,10 +91,11 @@
title={updat.manga.title}
titleA="{updat.isDownloaded ? 'Downloaded' : ''}
{updat.isBookmarked ? 'Bookmarked' : ''}"
- rounded="{gmState.Display === display.Compact && 'rounded-lg'}
- {gmState.Display === display.Comfortable && 'rounded-none rounded-t-lg'}"
+ rounded="{gmState.value.Display === display.Compact &&
+ 'rounded-lg'}
+ {gmState.value.Display === display.Comfortable && 'rounded-none rounded-t-lg'}"
>
- {#if gmState.Display === display.Compact}
+ {#if gmState.value.Display === display.Compact}
@@ -129,7 +130,7 @@
{/if}
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
- {#if gmState.Display === display.Comfortable}
+ {#if gmState.value.Display === display.Comfortable}
diff --git a/src/routes/(app)/history/+page.ts b/src/routes/(app)/history/+page.ts
new file mode 100644
index 0000000..622f758
--- /dev/null
+++ b/src/routes/(app)/history/+page.ts
@@ -0,0 +1,25 @@
+// Copyright (c) 2024 Contributors to the Suwayomi project
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at https://mozilla.org/MPL/2.0/.
+import type { PageLoad } from './$types';
+import { browser } from '$app/environment';
+import { History } from '$lib/gql/Queries';
+
+export const load: PageLoad = ({ params, fetch }) => {
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ History,
+ { offset: 0 },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
+ return { ...params };
+};
diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/+page.ts b/src/routes/(app)/manga/[MangaID]/(manga)/+page.ts
index 242e5b7..e0c3f58 100644
--- a/src/routes/(app)/manga/[MangaID]/(manga)/+page.ts
+++ b/src/routes/(app)/manga/[MangaID]/(manga)/+page.ts
@@ -6,11 +6,26 @@
import { error } from '@sveltejs/kit';
import type { PageLoad } from './$types';
+import { browser } from '$app/environment';
+import { getManga } from '$lib/gql/Queries';
-export const load: PageLoad = ({ params }) => {
- const tmp = parseInt(params.MangaID);
- if (isNaN(tmp)) error(400, 'MangaID should be a number');
+export const load: PageLoad = ({ params, fetch }) => {
+ const MangaID = parseInt(params.MangaID);
+ if (isNaN(MangaID)) error(400, 'MangaID should be a number');
+ if (browser)
+ (async () => {
+ const mod = await import('$lib/gql/graphqlClient');
+ mod.client
+ .query(
+ getManga,
+ { id: MangaID },
+ {
+ fetch
+ }
+ )
+ .toPromise();
+ })();
return {
- MangaID: tmp
+ MangaID
};
};
diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/ChaptersFilterModal.svelte b/src/routes/(app)/manga/[MangaID]/(manga)/ChaptersFilterModal.svelte
index 09954e3..9723cff 100644
--- a/src/routes/(app)/manga/[MangaID]/(manga)/ChaptersFilterModal.svelte
+++ b/src/routes/(app)/manga/[MangaID]/(manga)/ChaptersFilterModal.svelte
@@ -85,7 +85,7 @@
diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte b/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte
index 22d57cc..af2168e 100644
--- a/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte
+++ b/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte
@@ -18,8 +18,8 @@
diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte b/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte
index 19edb3f..d66b411 100644
--- a/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte
+++ b/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte
@@ -212,14 +212,16 @@
filteredChapters
? [...filteredChapters].sort((a, b) => {
let tmp = true;
- if (mmState.ChapterSort === ChapterSort.Source) {
+ if (mmState.value.ChapterSort === ChapterSort.Source) {
tmp = a.sourceOrder > b.sourceOrder;
- } else if (mmState.ChapterSort === ChapterSort['Fetched Date']) {
+ } else if (
+ mmState.value.ChapterSort === ChapterSort['Fetched Date']
+ ) {
tmp = a.fetchedAt > b.fetchedAt;
} else {
tmp = a.uploadDate > b.uploadDate;
}
- if (mmState.ChapterAsc) tmp = !tmp;
+ if (mmState.value.ChapterAsc) tmp = !tmp;
return tmp ? -1 : 1;
})
: undefined
@@ -289,7 +291,7 @@
{sortedChapters.length} Chapters
- {#if mmState.showMissingChapters && missingChapters?.length}
+ {#if mmState.value.showMissingChapters && missingChapters?.length}
- {mmState.ChapterTitle === ChapterTitle['Source Title']
+ {mmState.value.ChapterTitle ===
+ ChapterTitle['Source Title']
? chapter.name
: `Chapter ${chapter.chapterNumber}`}
@@ -468,7 +471,7 @@
).toLocaleString()}"
>
{new Date(
- mmState.ChapterFetchUpload
+ mmState.value.ChapterFetchUpload
? parseInt(chapter.uploadDate)
: parseInt(chapter.fetchedAt) * 1000
).toLocaleDateString()}{chapter.isDownloaded
diff --git a/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+layout.ts b/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+layout.ts
index 20cdc3d..58e15b4 100644
--- a/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+layout.ts
+++ b/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+layout.ts
@@ -6,6 +6,8 @@
import { error } from '@sveltejs/kit';
import type { LayoutLoad } from './$types';
+import { browser } from '$app/environment';
+import { fetchChapterPages } from '$lib/gql/Mutations';
export const ssr = false;
export const prerender = false;
@@ -15,6 +17,22 @@ export const load: LayoutLoad = ({ params }) => {
const ChapterID = parseInt(params.ChapterID);
if (isNaN(MangaID)) error(400, 'MangaID should be a number');
if (isNaN(ChapterID)) error(400, 'MangaID should be a number');
+ if (browser)
+ return import('$lib/gql/graphqlClient').then((mod) => {
+ return {
+ pre: mod.client
+ .mutation(
+ fetchChapterPages,
+ { chapterId: ChapterID },
+ {
+ fetch
+ }
+ )
+ .toPromise(),
+ MangaID,
+ ChapterID
+ };
+ });
return {
MangaID,
ChapterID
diff --git a/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+page.svelte b/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+page.svelte
index 09472af..626183c 100644
--- a/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+page.svelte
+++ b/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/+page.svelte
@@ -52,7 +52,7 @@
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
) &&
- mmState.mobileFullScreenOnChapterPage
+ mmState.value.mobileFullScreenOnChapterPage
) {
document.documentElement.requestFullscreen();
}
@@ -61,7 +61,7 @@
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
) &&
- mmState.mobileFullScreenOnChapterPage
+ mmState.value.mobileFullScreenOnChapterPage
) {
document.exitFullscreen();
}
@@ -102,8 +102,11 @@
| Promise>>
| undefined = $state();
function loadNew() {
- if (preload && !pagenav) pages = preload;
- else
+ if (preload && !$pagenav) pages = preload;
+ else if (preload === data.pre) {
+ pages = preload;
+ preload = undefined;
+ } else
pages = client
.mutation(fetchChapterPages, { chapterId: currentChapterID })
.toPromise();
@@ -111,7 +114,7 @@
let preload:
| Promise>>
- | undefined = $state(undefined);
+ | undefined = $state(data.pre);
let preLoadingId: number | undefined = $state(undefined);
async function updatePages(
pages:
@@ -145,8 +148,7 @@
}
function getChapterAfterID(
- currentID: number,
- _: unknown = undefined
+ currentID: number
): ResultOf | undefined {
const currentChapter = getChapterOfID(currentID);
if (!currentChapter) return undefined;
@@ -376,7 +378,7 @@
pageElement?.scrollTo({
top:
addition + (pageElement.scrollTop + pageElement.clientHeight * decimal),
- behavior: mmState.SmoothScroll ? 'smooth' : 'instant'
+ behavior: mmState.value.SmoothScroll ? 'smooth' : 'instant'
});
}
@@ -460,16 +462,11 @@
const _ = [currentChapterID];
untrack(loadNew);
});
- let nextid = $derived.by(() => {
- const _ = [currentChapterID];
- untrack(() => {
- return getChapterAfterID(currentChapterID, manga)?.id;
- });
- });
+ let nextid = $derived(getChapterAfterID(currentChapterID)?.id);
$effect(() => {
if (
nextid !== undefined &&
- mmState.preLoadNextChapter &&
+ mmState.value.preLoadNextChapter &&
nextid !== preLoadingId
) {
untrack(() => {
@@ -487,10 +484,10 @@
});
});
$effect(() => {
- if (mmState.ReaderMode === Mode.RTL) {
- path = layoutToPath(paths.rtl, mmState.NavLayout);
+ if (mmState.value.ReaderMode === Mode.RTL) {
+ path = layoutToPath(paths.rtl, mmState.value.NavLayout);
} else {
- path = layoutToPath(paths.ltr, mmState.NavLayout);
+ path = layoutToPath(paths.ltr, mmState.value.NavLayout);
}
});
$effect(() => {
@@ -583,35 +580,38 @@
- {#if (mmState.ReaderMode === Mode.RTL || mmState.ReaderMode === Mode.LTR) && mmState.Offset}
+ {#if (mmState.value.ReaderMode === Mode.RTL || mmState.value.ReaderMode === Mode.LTR) && mmState.value.Offset}
{/if}
{#each chapter.pages as page, pageIndex (page)}
{
@@ -626,28 +626,35 @@
}}
root={document.querySelector('#page') ?? undefined}
bottom={0}
- top={mmState.Margins ? 16 : 0}
+ top={mmState.value.Margins ? 16 : 0}
/>
{/each}
- {#if mmState.doPageIndicator}
+ {#if mmState.value.doPageIndicator}
diff --git a/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/chapterDrawer.svelte b/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/chapterDrawer.svelte
index 1b98823..852951c 100644
--- a/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/chapterDrawer.svelte
+++ b/src/routes/(app)/manga/[MangaID]/chapter/[ChapterID]/chapterDrawer.svelte
@@ -56,7 +56,7 @@
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
) &&
- mmState.mobileFullScreenOnChapterPage
+ mmState.value.mobileFullScreenOnChapterPage
) {
document.exitFullscreen();
}
@@ -65,7 +65,7 @@
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
) &&
- mmState.mobileFullScreenOnChapterPage
+ mmState.value.mobileFullScreenOnChapterPage
) {
document.documentElement.requestFullscreen();
}
@@ -129,33 +129,33 @@
Page Margins
Page Scale
Smooth Scroll
- {#if mmState.ReaderMode !== Mode.Vertical}
+ {#if mmState.value.ReaderMode !== Mode.Vertical}
Page Offset
{/if}