ui: Reset current_theme on page change
This commit is contained in:
parent
a9635ca8ac
commit
4c29f2e53e
5
frontend/fic/src/routes/+page.js
Normal file
5
frontend/fic/src/routes/+page.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { set_current_theme } from '$lib/stores/themes';
|
||||||
|
|
||||||
|
export function load() {
|
||||||
|
set_current_theme.set(null);
|
||||||
|
}
|
5
frontend/fic/src/routes/edit/+page.js
Normal file
5
frontend/fic/src/routes/edit/+page.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { set_current_theme } from '$lib/stores/themes';
|
||||||
|
|
||||||
|
export function load() {
|
||||||
|
set_current_theme.set(null);
|
||||||
|
}
|
5
frontend/fic/src/routes/rank/+page.js
Normal file
5
frontend/fic/src/routes/rank/+page.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { set_current_theme } from '$lib/stores/themes';
|
||||||
|
|
||||||
|
export function load() {
|
||||||
|
set_current_theme.set(null);
|
||||||
|
}
|
5
frontend/fic/src/routes/register/+page.js
Normal file
5
frontend/fic/src/routes/register/+page.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { set_current_theme } from '$lib/stores/themes';
|
||||||
|
|
||||||
|
export function load() {
|
||||||
|
set_current_theme.set(null);
|
||||||
|
}
|
5
frontend/fic/src/routes/rules/+page.js
Normal file
5
frontend/fic/src/routes/rules/+page.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { set_current_theme } from '$lib/stores/themes';
|
||||||
|
|
||||||
|
export function load() {
|
||||||
|
set_current_theme.set(null);
|
||||||
|
}
|
5
frontend/fic/src/routes/tags/+page.js
Normal file
5
frontend/fic/src/routes/tags/+page.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { set_current_theme } from '$lib/stores/themes';
|
||||||
|
|
||||||
|
export function load() {
|
||||||
|
set_current_theme.set(null);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user