From 22afab2f47bcc1e5e9ac0db35d2f1b168becf76e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 23 Dec 2019 16:52:05 -0500 Subject: Remove _isInitialized --- ext/fg/js/popup.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext') 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(); -- cgit v1.2.3