mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
Merge branch 'tabs-zoom-api' of https://github.com/DarKFlameS/webextensions-examples into tabs-zoom-api
This commit is contained in:
@@ -97,6 +97,7 @@ document.addEventListener("click", function(e) {
|
||||
callOnActiveTab((tab) => {
|
||||
chrome.tabs.getZoom(tab.id, function(zoomFactor){
|
||||
//the minimum zoomFactor is 0.3, it can't go lower
|
||||
console.log(zoomFactor)
|
||||
if (zoomFactor <= MIN_ZOOM) {
|
||||
alert("Tab zoom factor is already at minimum!");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user