From 01242a2f0d174b4bf8b51fd5627edced465757e9 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 23 Sep 2021 12:44:49 +0900 Subject: Search a content from frames successfully loaded --- src/background/presenters/FramePresenter.ts | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/background/presenters/FramePresenter.ts (limited to 'src/background/presenters') 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>; -} - -export class FramePresenterImpl implements FramePresenter { - async getAllFrameIds(tabId: number): Promise> { - const frames = await browser.webNavigation.getAllFrames({ tabId: tabId }); - return frames - .filter((f) => !f.url.startsWith("moz-extension://")) - .map((f) => f.frameId); - } -} -- cgit v1.2.3