diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fg/js/frontend.js | 2 | ||||
-rw-r--r-- | ext/fg/js/popup-proxy-host.js | 4 | ||||
-rw-r--r-- | ext/fg/js/popup-proxy.js | 4 | ||||
-rw-r--r-- | ext/fg/js/popup.js | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 2fa69c9d..d29e4e4c 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -67,7 +67,7 @@ class Frontend extends TextScanner { async onResize() { const textSource = this.textSourceCurrent; - if (textSource !== null && await this.popup.isVisibleAsync()) { + if (textSource !== null && await this.popup.isVisible()) { this._lastShowPromise = this.popup.showContent( textSource.getRect(), textSource.getWritingMode() diff --git a/ext/fg/js/popup-proxy-host.js b/ext/fg/js/popup-proxy-host.js index 2f06bb67..9ff8a8c8 100644 --- a/ext/fg/js/popup-proxy-host.js +++ b/ext/fg/js/popup-proxy-host.js @@ -42,7 +42,7 @@ class PopupProxyHost { ['createNestedPopup', ({parentId}) => this._onApiCreateNestedPopup(parentId)], ['setOptions', ({id, options}) => this._onApiSetOptions(id, options)], ['hide', ({id, changeFocus}) => this._onApiHide(id, changeFocus)], - ['isVisibleAsync', ({id}) => this._onApiIsVisibleAsync(id)], + ['isVisible', ({id}) => this._onApiIsVisibleAsync(id)], ['setVisibleOverride', ({id, visible}) => this._onApiSetVisibleOverride(id, visible)], ['containsPoint', ({id, x, y}) => this._onApiContainsPoint(id, x, y)], ['showContent', ({id, elementRect, writingMode, type, details}) => this._onApiShowContent(id, elementRect, writingMode, type, details)], @@ -73,7 +73,7 @@ class PopupProxyHost { async _onApiIsVisibleAsync(id) { const popup = this._getPopup(id); - return await popup.isVisibleAsync(); + return await popup.isVisible(); } async _onApiSetVisibleOverride(id, visible) { diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index d52cc26d..e4081e90 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -60,9 +60,9 @@ class PopupProxy { return await this._invokeHostApi('hide', {id: this._id, changeFocus}); } - async isVisibleAsync() { + async isVisible() { const id = await this._getPopupId(); - return await this._invokeHostApi('isVisibleAsync', {id}); + return await this._invokeHostApi('isVisible', {id}); } async setVisibleOverride(visible) { diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 4b8da979..2026b7a5 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -83,7 +83,7 @@ class Popup { } } - async isVisibleAsync() { + async isVisible() { return this.isVisibleSync(); } |