Apply suggestion to src/modules/instance.js

This commit is contained in:
Shpuld Shpludson 2020-02-28 17:20:40 +00:00
parent 5b7acca0ba
commit ee582855d2

View file

@ -163,7 +163,7 @@ const instance = {
// New theme presets don't have 'theme' property, they use 'source'
const themeSource = themeData.source
if (themeSource && themeSource.themeEngineVersion === CURRENT_VERSION) {
if (!themeData.theme || (themeSource && themeSource.themeEngineVersion === CURRENT_VERSION)) {
applyTheme(themeSource)
} else {
applyTheme(themeData.theme)