Skip to content

Commit 9d05ae6

Browse files
committed
fix: "TypeError: FullZoom._applySettingToPref is not a function"
Fixes issue 904
1 parent e0f9207 commit 9d05ae6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

common/content/buffer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,14 +1020,14 @@ const Buffer = Module("buffer", {
10201020
return win;
10211021
},
10221022

1023-
setZoom: function setZoom(value, fullZoom) {
1023+
setZoom: function setZoom(value, fullZoom, browser = config.tabbrowser.mCurrentBrowser) {
10241024
liberator.assert(value >= Buffer.ZOOM_MIN || value <= Buffer.ZOOM_MAX,
10251025
"Zoom value out of range (" + Buffer.ZOOM_MIN + " - " + Buffer.ZOOM_MAX + "%)");
10261026

10271027
ZoomManager.useFullZoom = fullZoom;
10281028
ZoomManager.zoom = value / 100;
10291029
if ("FullZoom" in window)
1030-
FullZoom._applySettingToPref();
1030+
FullZoom._applyZoomToPref(browser);
10311031
liberator.echomsg((fullZoom ? "Full" : "Text") + " zoom: " + value + "%");
10321032
},
10331033

muttator/content/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ const Config = Module("config", ConfigBase, {
123123
get mTabs() this.tabContainer.childNodes,
124124
get visibleTabs() Array.slice(this.mTabs),
125125
get mCurrentTab() this.tabContainer.selectedItem,
126+
get mCurrentBrowser() this.getBrowserForSelectedTab(),
126127
get mStrip() this.tabStrip,
127128
get browsers() {
128129
let browsers = [];

0 commit comments

Comments
 (0)