summaryrefslogtreecommitdiff
path: root/ext/bg/js/backend.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-02 11:18:09 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-03-02 11:18:09 +0200
commite0edb30efd51ac18167880d77c2dea11c73a1bfc (patch)
tree2601a53a7ad8f5defb83e3f0583907fd1a8ada9e /ext/bg/js/backend.js
parentbd48d2f919e1387063c66ef91c40ec86a1131118 (diff)
fix Backend prepare issues in settings
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r--ext/bg/js/backend.js4
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')});