aboutsummaryrefslogtreecommitdiff
path: root/src/background/presenters/FramePresenter.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-09-23 12:44:49 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-09-23 13:14:00 +0900
commit01242a2f0d174b4bf8b51fd5627edced465757e9 (patch)
treeb8ab266625ae3244b6ed8c9ff7a92a979e532e91 /src/background/presenters/FramePresenter.ts
parentcbf4b37bd0d5ba277d6400ed460d6a086ae1d7bb (diff)
Search a content from frames successfully loaded
Diffstat (limited to 'src/background/presenters/FramePresenter.ts')
-rw-r--r--src/background/presenters/FramePresenter.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/background/presenters/FramePresenter.ts b/src/background/presenters/FramePresenter.ts
deleted file mode 100644
index c94f8dd..0000000
--- a/src/background/presenters/FramePresenter.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-export default interface FramePresenter {
- getAllFrameIds(tabId: number): Promise<Array<number>>;
-}
-
-export class FramePresenterImpl implements FramePresenter {
- async getAllFrameIds(tabId: number): Promise<Array<number>> {
- const frames = await browser.webNavigation.getAllFrames({ tabId: tabId });
- return frames
- .filter((f) => !f.url.startsWith("moz-extension://"))
- .map((f) => f.frameId);
- }
-}