diff options
Diffstat (limited to 'src/background/zooms.js')
-rw-r--r-- | src/background/zooms.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/background/zooms.js b/src/background/zooms.js index def2878..bb65030 100644 --- a/src/background/zooms.js +++ b/src/background/zooms.js @@ -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 }; |