aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/LinkController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/controllers/LinkController.ts')
-rw-r--r--src/background/controllers/LinkController.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/background/controllers/LinkController.ts b/src/background/controllers/LinkController.ts
index 7e395b1..707b28a 100644
--- a/src/background/controllers/LinkController.ts
+++ b/src/background/controllers/LinkController.ts
@@ -1,15 +1,19 @@
import LinkUseCase from '../usecases/LinkUseCase';
export default class LinkController {
+ private linkUseCase: LinkUseCase;
+
constructor() {
this.linkUseCase = new LinkUseCase();
}
- openToTab(url, tabId) {
- this.linkUseCase.openToTab(url, tabId);
+ openToTab(url: string, tabId: number): Promise<void> {
+ return this.linkUseCase.openToTab(url, tabId);
}
- openNewTab(url, openerId, background) {
- this.linkUseCase.openNewTab(url, openerId, background);
+ openNewTab(
+ url: string, openerId: number, background: boolean,
+ ): Promise<void> {
+ return this.linkUseCase.openNewTab(url, openerId, background);
}
}