support zz command
This commit is contained in:
parent
1f15d22643
commit
a5f1e06efc
4 changed files with 14 additions and 4 deletions
|
@ -18,7 +18,7 @@ const zoomIn = (tabId = undefined) => {
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const zoomOut = (tabId = undefined) => {
|
||||
browser.tabs.getZoom(tabId).then((factor) => {
|
||||
|
@ -29,6 +29,10 @@ const zoomOut = (tabId = undefined) => {
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export { zoomIn, zoomOut };
|
||||
const neutral = (tabId = undefined) => {
|
||||
browser.tabs.setZoom(tabId, 1);
|
||||
};
|
||||
|
||||
export { zoomIn, zoomOut, neutral };
|
||||
|
|
Reference in a new issue