aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/popup.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 9b3e3944..12a5c1c2 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -104,7 +104,7 @@ class Popup {
}
async showContent(elementRect, writingMode, type=null, details=null) {
- if (!this._isInitialized()) { return; }
+ if (this._options === null) { throw new Error('Options not assigned'); }
await this._show(elementRect, writingMode);
if (type === null) { return; }
this._invokeApi('setContent', {type, details});
@@ -236,10 +236,6 @@ class Popup {
});
}
- _isInitialized() {
- return this._options !== null;
- }
-
async _show(elementRect, writingMode) {
await this._inject();