function onGot(zoom) {
console.log(zoom);
}
function onError(error) {
console.log(`Error: ${error}`);
}
let gettingZoom = browser.tabs.getZoom();
gettingZoom.then(onGot, onError);tabs.getZoom() / notebook
tabs.getZoom()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
function onGot(zoom) {
console.log(zoom);
}
function onError(error) {
console.log(`Error: ${error}`);
}
let gettingZoom = browser.tabs.getZoom(2);
gettingZoom.then(onGot, onError);