made it actually work, the forceSnapshot
This commit is contained in:
parent
d98e31af45
commit
c7f42b7799
2 changed files with 4 additions and 9 deletions
|
@ -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':
|
||||
|
@ -454,7 +449,7 @@ export default {
|
|||
forceSnapshot () {
|
||||
const { origin } = this.themeWarning
|
||||
switch (origin) {
|
||||
case 'localstorage':
|
||||
case 'localStorage':
|
||||
this.loadThemeFromLocalStorage(false, true)
|
||||
break
|
||||
case 'file':
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</button>
|
||||
<button
|
||||
class="btn"
|
||||
@click="dismissWarning"
|
||||
@click="forceSnapshot"
|
||||
>
|
||||
{{ $t('settings.style.switcher.use_snapshot') }}
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue