aboutsummaryrefslogtreecommitdiff
path: root/src/background/presenters/FramePresenter.ts
diff options
context:
space:
mode:
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);
- }
-}