add tab delete test

This commit is contained in:
Shin'ya Ueoka 2018-02-13 20:13:27 +09:00
parent 3f8bbe11d9
commit 0904f8e1eb
5 changed files with 28 additions and 13 deletions

View file

@ -1,4 +1,6 @@
import { WINDOWS_CREATE, WINDOWS_REMOVE } from '../shared/messages';
import {
WINDOWS_CREATE, WINDOWS_REMOVE, WINDOWS_GET
} from '../shared/messages';
import * as ipc from './ipc';
const create = (url) => {
@ -15,4 +17,11 @@ const remove = (windowId) => {
});
};
export { create, remove };
const get = (windowId) => {
return ipc.send({
type: WINDOWS_GET,
windowId,
});
};
export { create, remove, get };