1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-24 07:12:57 +00:00

First draft version with Svelte for popup and additional build steps

This commit is contained in:
2024-03-21 23:56:47 +04:00
parent f213aa4b8c
commit f7160ba70a
52 changed files with 4922 additions and 1 deletions

8
src/hooks.js 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 "/";
}
}