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:
8
src/hooks.js
Normal file
8
src/hooks.js
Normal 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 "/";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user