Settings cleanup

This commit is contained in:
ZXY101
2023-09-28 14:13:01 +02:00
parent 35bab3f86b
commit cb08e39333
11 changed files with 152 additions and 125 deletions

View File

@@ -1,3 +1,10 @@
import { page } from "$app/stores";
import { get } from "svelte/store";
export function clamp(num: number, min: number, max: number) {
return Math.min(Math.max(num, min), max);
}
export function isReader() {
return get(page).route.id === '/[manga]/[volume]'
}