diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-02 11:18:09 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-02 11:18:09 +0200 |
commit | e0edb30efd51ac18167880d77c2dea11c73a1bfc (patch) | |
tree | 2601a53a7ad8f5defb83e3f0583907fd1a8ada9e /ext/bg/js/backend.js | |
parent | bd48d2f919e1387063c66ef91c40ec86a1131118 (diff) |
fix Backend prepare issues in settings
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index cdcfb7ad..be43ecf6 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -39,6 +39,8 @@ class Backend { url: window.location.href }; + this.isPrepared = false; + this.clipboardPasteTarget = document.querySelector('#clipboard-paste-target'); this.popupWindow = null; @@ -108,6 +110,8 @@ class Backend { } chrome.runtime.onMessage.addListener(this.onMessage.bind(this)); + this.isPrepared = true; + const options = this.getOptions(this.optionsContext); if (options.general.showGuide) { chrome.tabs.create({url: chrome.runtime.getURL('/bg/guide.html')}); |