From 6e7e4055cb778fe202146693acca5755c80d0ccd Mon Sep 17 00:00:00 2001 From: mbnuqw Date: Sun, 19 Apr 2020 20:45:09 +0500 Subject: [PATCH] Refactoring --- src/page.settings/components/snapshots.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/page.settings/components/snapshots.vue b/src/page.settings/components/snapshots.vue index a9f5ba0c..7ac249a5 100644 --- a/src/page.settings/components/snapshots.vue +++ b/src/page.settings/components/snapshots.vue @@ -91,7 +91,6 @@ import { translate } from '../../../addon/locales/dict' import { DEFAULT_CTX } from '../../../addon/defaults' import { DEFAULT_TABS_PANEL } from '../../../addon/defaults' -import { getPrevVerSnapshots } from '../../../addon/actions/snapshots' import EventBus from '../../event-bus' import State from '../store/state' import Actions from '../actions' @@ -115,7 +114,6 @@ export default { async created() { let parsedSnapshots = [] let { snapshots_v4 } = await browser.storage.local.get({ snapshots_v4: null }) - if (!snapshots_v4) snapshots_v4 = await getPrevVerSnapshots() // Watch 'activeSnapshot' change and scroll to changed target const activeSnapshotGetter = Object.getOwnPropertyDescriptor(this, 'activeSnapshot').get @@ -286,7 +284,6 @@ export default { */ async removeSnapshot(snapshot) { let { snapshots_v4 } = await browser.storage.local.get({ snapshots_v4: [] }) - if (!snapshots_v4) snapshots_v4 = await getPrevVerSnapshots() const indexStored = snapshots_v4.findIndex(s => s.id === snapshot.id) if (indexStored === -1) return