diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-20 16:43:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 16:43:38 +0900 |
commit | df9094e52066fb85a06d373cb3a82b670d69c88e (patch) | |
tree | e71ff2bb27b0946e79d80d64b5141653c8d69162 /e2e/ambassador/src/client | |
parent | 958b931090e0cc012e36a9361ea6e4cd9be1471d (diff) | |
parent | 7acbdbfef25d04503d4a31dfa1953be29323cc87 (diff) |
Merge pull request #492 from ueokande/qa-0.19
QA 0.19
Diffstat (limited to 'e2e/ambassador/src/client')
-rw-r--r-- | e2e/ambassador/src/client/tabs.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/e2e/ambassador/src/client/tabs.js b/e2e/ambassador/src/client/tabs.js index 290428c..d0cd578 100644 --- a/e2e/ambassador/src/client/tabs.js +++ b/e2e/ambassador/src/client/tabs.js @@ -1,5 +1,5 @@ import { - TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_UPDATE, + TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_UPDATE, TABS_REMOVE, TABS_GET_ZOOM, TABS_SET_ZOOM, } from '../shared/messages'; import * as ipc from './ipc'; @@ -35,6 +35,13 @@ const update = (tabId, properties) => { }); }; +const remove = (tabId) => { + return ipc.send({ + type: TABS_REMOVE, + tabId + }); +}; + const getZoom = (tabId) => { return ipc.send({ tabId, @@ -50,4 +57,4 @@ const setZoom = (tabId, factor) => { }); }; -export { create, selectAt, get, update, getZoom, setZoom }; +export { create, selectAt, get, update, remove, getZoom, setZoom }; |