aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'e2e/ambassador/src/client')
-rw-r--r--e2e/ambassador/src/client/tabs.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/e2e/ambassador/src/client/tabs.js b/e2e/ambassador/src/client/tabs.js
index c7b1340..14d524d 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_ZOOM, TABS_SET_ZOOM,
+ TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_GET_ZOOM, TABS_SET_ZOOM,
} from '../shared/messages';
import * as ipc from './ipc';
@@ -19,6 +19,13 @@ const selectAt = (windowId, index) => {
});
};
+const get = (tabId) => {
+ return ipc.send({
+ type: TABS_GET,
+ tabId,
+ });
+};
+
const getZoom = (tabId) => {
return ipc.send({
tabId,
@@ -34,4 +41,4 @@ const setZoom = (tabId, factor) => {
});
};
-export { create, selectAt, getZoom, setZoom };
+export { create, selectAt, get, getZoom, setZoom };