blob: 0481ec1af08dec85dbffb72433861e07a8a874ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import * as messages from '../../shared/messages';
export default interface FindMasterClient {
findNext(): void;
findPrev(): void;
// eslint-disable-next-line semi
}
export class FindMasterClientImpl implements FindMasterClient {
findNext(): void {
window.top.postMessage(JSON.stringify({
type: messages.FIND_NEXT,
}), '*');
}
findPrev(): void {
window.top.postMessage(JSON.stringify({
type: messages.FIND_PREV,
}), '*');
}
}
|