blob: 9c3f8129e12eb94fe960c398ded5f4f4ce1df1bf (
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
24
25
26
27
|
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,
}),
"*"
);
}
}
|