summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSeeFlowerX <[email protected]>2026-01-15 03:14:42 +0000
committerSeeFlowerX <[email protected]>2026-01-15 03:14:42 +0000
commit30933f85bfc3f3bc4b0810125369f4b459ae926a (patch)
tree6258665855f2062c51a0dfe0af6bf92a9367024a /src
parenta547b3c8dc48791c4f767da0314d907eba543cc1 (diff)
add title query param
Diffstat (limited to 'src')
-rw-r--r--src/store/app.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/store/app.ts b/src/store/app.ts
index 55a3844..c0260a1 100644
--- a/src/store/app.ts
+++ b/src/store/app.ts
@@ -215,6 +215,9 @@ export function initialState() {
if (query.theme === 'dark' || query.theme === 'light') {
s.theme = query.theme;
}
+ if (query.title) {
+ document.title = decodeURIComponent(query.title);
+ }
// set initial theme
setTheme(s.theme);
return s;