Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Apr 19, 2020
1 parent 7cfff42 commit 6e7e405
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/page.settings/components/snapshots.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e7e405

Please sign in to comment.