From a5f1e06efcc64c181f2e06337e47e4705aebabb8 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 23 Aug 2017 22:01:29 +0900 Subject: support zz command --- src/background/zooms.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/background/zooms.js') 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 }; -- cgit v1.2.3