From 21a0f2294b51f6ce78134384d34f302fb2cb8614 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 15 May 2021 18:03:43 +0900 Subject: Remove legacy find --- src/content/client/FindMasterClient.ts | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/content/client/FindMasterClient.ts (limited to 'src/content/client/FindMasterClient.ts') diff --git a/src/content/client/FindMasterClient.ts b/src/content/client/FindMasterClient.ts deleted file mode 100644 index 9c3f812..0000000 --- a/src/content/client/FindMasterClient.ts +++ /dev/null @@ -1,27 +0,0 @@ -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, - }), - "*" - ); - } -} -- cgit v1.2.3