blob: 9ed38dd3e2c04ddd2f1366478705fd681231e9cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import * as messages from '../../shared/messages';
export default interface FindMasterClient {
findNext(): void;
findPrev(): void;
}
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,
}), '*');
}
}
|