diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-04-03 14:01:19 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-04-03 14:01:19 +0900 |
| commit | 090f8eff670b841499348fc0ccfb0e7b42928e2a (patch) | |
| tree | cad9b694ac0ca85e99b48f8d930e72e041f08d12 /packages/client/src | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.109.2 (diff) | |
| download | sharkey-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.ts | 4 |
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; } } |