aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/frontend.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 52e3a5bc..d2fe9e76 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -196,7 +196,9 @@ class Frontend extends TextScanner {
}
_updateContentScale() {
- const contentScale = 1.0 / this._pageZoomFactor; // TODO : Use options
+ const {popupScalingFactor, popupScaleRelativeToPageZoom} = this.options.general;
+ let contentScale = popupScalingFactor;
+ if (popupScaleRelativeToPageZoom) { contentScale /= this._pageZoomFactor; }
if (contentScale === this._contentScale) { return; }
this._contentScale = contentScale;