aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/style_switcher/style_switcher.js11
-rw-r--r--src/components/style_switcher/style_switcher.vue2
2 files changed, 4 insertions, 9 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js
index 3b538ac7..27df0d10 100644
--- a/src/components/style_switcher/style_switcher.js
+++ b/src/components/style_switcher/style_switcher.js
@@ -390,11 +390,6 @@ export default {
const snapshotEngineVersion = (theme || {}).themeEngineVersion
const themeEngineVersion = (source || {}).themeEngineVersion || 2
const versionsMatch = themeEngineVersion === CURRENT_VERSION
- console.log(
- theme !== undefined,
- source !== undefined,
- themeEngineVersion !== snapshotEngineVersion
- )
const sourceSnapshotMismatch = (
theme !== undefined &&
source !== undefined &&
@@ -442,7 +437,7 @@ export default {
forceLoad () {
const { origin } = this.themeWarning
switch (origin) {
- case 'localstorage':
+ case 'localStorage':
this.loadThemeFromLocalStorage(true)
break
case 'file':
@@ -451,10 +446,10 @@ export default {
}
this.dismissWarning()
},
- forceSnapshot() {
+ forceSnapshot () {
const { origin } = this.themeWarning
switch (origin) {
- case 'localstorage':
+ case 'localStorage':
this.loadThemeFromLocalStorage(false, true)
break
case 'file':
diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue
index 793d68f1..ff7f4710 100644
--- a/src/components/style_switcher/style_switcher.vue
+++ b/src/components/style_switcher/style_switcher.vue
@@ -16,7 +16,7 @@
</button>
<button
class="btn"
- @click="dismissWarning"
+ @click="forceSnapshot"
>
{{ $t('settings.style.switcher.use_snapshot') }}
</button>