summaryrefslogtreecommitdiff
path: root/ext/js/app/frontend.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-06 14:31:23 -0500
committerGitHub <noreply@github.com>2021-03-06 14:31:23 -0500
commit01f74510f011e54d452e8fce2b9221b0af942911 (patch)
tree4509800d4a40fff18da979818db3e118a03148fb /ext/js/app/frontend.js
parent6e00b5d765dbcb580f93d1cdf6326169710cf36a (diff)
Separate display resizer (#1494)
* Make invokeContentOrigin public * Move display resizer functionality into a new class: DisplayResizer * Simplify field names * Use parent frame instead of content origin * Remove unused
Diffstat (limited to 'ext/js/app/frontend.js')
-rw-r--r--ext/js/app/frontend.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js
index 692bfa80..31e93a68 100644
--- a/ext/js/app/frontend.js
+++ b/ext/js/app/frontend.js
@@ -128,9 +128,7 @@ class Frontend {
['copySelection', {async: false, handler: this._onApiCopySelection.bind(this)}],
['getSelectionText', {async: false, handler: this._onApiGetSelectionText.bind(this)}],
['getPopupInfo', {async: false, handler: this._onApiGetPopupInfo.bind(this)}],
- ['getPageInfo', {async: false, handler: this._onApiGetPageInfo.bind(this)}],
- ['getFrameSize', {async: true, handler: this._onApiGetFrameSize.bind(this)}],
- ['setFrameSize', {async: true, handler: this._onApiSetFrameSize.bind(this)}]
+ ['getPageInfo', {async: false, handler: this._onApiGetPageInfo.bind(this)}]
]);
this._updateContentScale();
@@ -221,14 +219,6 @@ class Frontend {
return await this._popupFactory.clearAllVisibleOverride(token);
}
- async _onApiGetFrameSize() {
- return await this._popup.getFrameSize();
- }
-
- async _onApiSetFrameSize({width, height}) {
- return await this._popup.setFrameSize(width, height);
- }
-
// Private
_onResize() {