From e740965d4f39a34eecf8a211f22eddf56d185fed Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 23 Dec 2019 17:12:09 -0500 Subject: Scale popup based on current page zoom factor --- ext/fg/js/popup-proxy.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/fg/js/popup-proxy.js') diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index ae0cffad..4cacee53 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -97,6 +97,11 @@ class PopupProxy { this._invokeHostApi('clearAutoPlayTimer', {id: this._id}); } + async setContentScale(scale) { + const id = await this._getPopupId(); + this._invokeHostApi('setContentScale', {id, scale}); + } + // Private _getPopupId() { -- cgit v1.2.3