Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Commit 9e41c25

Browse files
committed
Fix crash issue
1 parent 41f96b2 commit 9e41c25

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/js/popup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'chrome-extension-async'
12
import React from 'react'
23
import { render } from 'react-dom'
34
import { Provider } from 'mobx-react'

src/js/stores/AppStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default class AppStore {
116116

117117
loadLocalStorage = () => {
118118
const { draft } = JSON.parse(window.localStorage.getItem(this.domainKey) || '{}')
119-
const { hosts } = JSON.parse(window.localStorage.getItem(key) || '{}')
119+
const { hosts = [] } = JSON.parse(window.localStorage.getItem(key) || '{}')
120120
Object.assign(this, { draft, hosts })
121121
}
122122

0 commit comments

Comments
 (0)