Skip to content

Commit

Permalink
Fix crash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xcv58 committed Oct 24, 2017
1 parent 41f96b2 commit 9e41c25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/js/popup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'chrome-extension-async'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'mobx-react'
Expand Down
2 changes: 1 addition & 1 deletion src/js/stores/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class AppStore {

loadLocalStorage = () => {
const { draft } = JSON.parse(window.localStorage.getItem(this.domainKey) || '{}')
const { hosts } = JSON.parse(window.localStorage.getItem(key) || '{}')
const { hosts = [] } = JSON.parse(window.localStorage.getItem(key) || '{}')
Object.assign(this, { draft, hosts })
}

Expand Down

0 comments on commit 9e41c25

Please sign in to comment.