summaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-04-03 14:01:19 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-04-03 14:01:19 +0900
commit090f8eff670b841499348fc0ccfb0e7b42928e2a (patch)
treecad9b694ac0ca85e99b48f8d930e72e041f08d12 /packages/client/src
parentMerge branch 'develop' (diff)
parent12.109.2 (diff)
downloadsharkey-090f8eff670b841499348fc0ccfb0e7b42928e2a.tar.gz
sharkey-090f8eff670b841499348fc0ccfb0e7b42928e2a.tar.bz2
sharkey-090f8eff670b841499348fc0ccfb0e7b42928e2a.zip
Merge branch 'develop'
Diffstat (limited to 'packages/client/src')
-rw-r--r--packages/client/src/scripts/theme.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/scripts/theme.ts b/packages/client/src/scripts/theme.ts
index 45743d0ffa..2cb78fae5c 100644
--- a/packages/client/src/scripts/theme.ts
+++ b/packages/client/src/scripts/theme.ts
@@ -51,14 +51,14 @@ export function applyTheme(theme: Theme, persist = true) {
if (_theme.base) {
const base = [lightTheme, darkTheme].find(x => x.id === _theme.base);
- _theme.props = Object.assign({}, base.props, _theme.props);
+ if (base) _theme.props = Object.assign({}, base.props, _theme.props);
}
const props = compile(_theme);
for (const tag of document.head.children) {
if (tag.tagName === 'META' && tag.getAttribute('name') === 'theme-color') {
- tag.setAttribute('content', props['html']);
+ tag.setAttribute('content', props['htmlThemeColor']);
break;
}
}