aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-01-23 22:04:05 +0200
committerHenry Jameson <me@hjkos.com>2020-01-23 22:04:05 +0200
commita69723badf45a62cb9f6e0adc09b49ff10c9eaac (patch)
treeafed51f76cb5a761d0daf9f95381eb6b5c3562af /src
parent64fc07f080635c83f27b9a5541be32013f1d9a26 (diff)
fix snapshot mismatch message for file
Diffstat (limited to 'src')
-rw-r--r--src/components/style_switcher/style_switcher.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js
index 06ef71a7..59ec1bf5 100644
--- a/src/components/style_switcher/style_switcher.js
+++ b/src/components/style_switcher/style_switcher.js
@@ -385,7 +385,7 @@ export default {
if (!source && !theme) {
throw new Error('Can\'t load theme: empty')
}
- const version = (origin === 'localstorage' && !theme.colors)
+ const version = (origin === 'localStorage' && !theme.colors)
? 'l1'
: fileVersion
const snapshotEngineVersion = (theme || {}).themeEngineVersion
@@ -404,7 +404,7 @@ export default {
version !== 'l1' &&
origin !== 'defaults'
) {
- if (sourceSnapshotMismatch) {
+ if (sourceSnapshotMismatch && origin === 'localStorage') {
this.themeWarning = {
origin,
themeEngineVersion,