diff options
Diffstat (limited to 'e2e/ambassador/src/client/tabs.js')
-rw-r--r-- | e2e/ambassador/src/client/tabs.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/e2e/ambassador/src/client/tabs.js b/e2e/ambassador/src/client/tabs.js index 14d524d..290428c 100644 --- a/e2e/ambassador/src/client/tabs.js +++ b/e2e/ambassador/src/client/tabs.js @@ -1,5 +1,6 @@ import { - TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_GET_ZOOM, TABS_SET_ZOOM, + TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_UPDATE, + TABS_GET_ZOOM, TABS_SET_ZOOM, } from '../shared/messages'; import * as ipc from './ipc'; @@ -26,6 +27,14 @@ const get = (tabId) => { }); }; +const update = (tabId, properties) => { + return ipc.send({ + type: TABS_UPDATE, + tabId, + properties, + }); +}; + const getZoom = (tabId) => { return ipc.send({ tabId, @@ -41,4 +50,4 @@ const setZoom = (tabId, factor) => { }); }; -export { create, selectAt, get, getZoom, setZoom }; +export { create, selectAt, get, update, getZoom, setZoom }; |