Skip to content

Commit

Permalink
Update maximun zoomFactor for tabs (mdn#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnilSeervi authored Aug 31, 2021
1 parent 0d0ae41 commit 753b6fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabs-tabs-tabs/tabs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Zoom constants. Define Max, Min, increment and default values
const ZOOM_INCREMENT = 0.2;
const MAX_ZOOM = 3;
const MAX_ZOOM = 5;
const MIN_ZOOM = 0.3;
const DEFAULT_ZOOM = 1;

Expand Down Expand Up @@ -120,7 +120,7 @@ document.addEventListener("click", (e) => {
callOnActiveTab((tab) => {
var gettingZoom = browser.tabs.getZoom(tab.id);
gettingZoom.then((zoomFactor) => {
//the maximum zoomFactor is 3, it can't go higher
//the maximum zoomFactor is 5, it can't go higher
if (zoomFactor >= MAX_ZOOM) {
alert("Tab zoom factor is already at max!");
} else {
Expand Down

0 comments on commit 753b6fc

Please sign in to comment.