1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2026-02-07 07:42:59 +00:00

Renamed hooks to TS

This commit is contained in:
2025-02-28 02:40:19 +04:00
parent 92afd10b81
commit 92854f4d6b

8
src/hooks.ts Normal file
View File

@@ -0,0 +1,8 @@
/** @type {import('@sveltejs/kit').Reroute} */
export function reroute({url}) {
// Reroute index.html as just / for the root.
// Browser extension starts from with the index.html file in the pathname which is not correct for the router.
if (url.pathname === '/index.html') {
return "/";
}
}