aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/content/index.js
blob: dd466882da3afe80ec99a7f1efe3727a1aaba24a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { WINDOWS_CREATE, WINDOWS_REMOVE } from '../shared/messages';
import * as ipc from './ipc';

ipc.receivePageMessage((message) => {
  switch (message.type) {
  case WINDOWS_CREATE:
    return ipc.send(message);
  case WINDOWS_REMOVE:
    return ipc.send(message);
  }
});