Merge pull request #2 from iczer/master

fix: exception of saving local setting;
This commit is contained in:
Taenggu 2020-09-14 13:30:58 +08:00 committed by GitHub
commit 8298186e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ function modifyVars(color) {
}
function loadLocalTheme(localSetting) {
if (localSetting) {
if (localSetting && localSetting.theme) {
let {color, mode} = localSetting.theme
color = color || theme.color
mode = mode || theme.mode