aboutsummaryrefslogtreecommitdiff
path: root/src/background/usecases/TabSelectUseCase.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/usecases/TabSelectUseCase.ts')
-rw-r--r--src/background/usecases/TabSelectUseCase.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/background/usecases/TabSelectUseCase.ts b/src/background/usecases/TabSelectUseCase.ts
index a0b52f0..df3db94 100644
--- a/src/background/usecases/TabSelectUseCase.ts
+++ b/src/background/usecases/TabSelectUseCase.ts
@@ -1,10 +1,11 @@
+import { injectable } from 'tsyringe';
import TabPresenter from '../presenters/TabPresenter';
+@injectable()
export default class TabSelectUseCase {
- private tabPresenter: TabPresenter;
-
- constructor() {
- this.tabPresenter = new TabPresenter();
+ constructor(
+ private tabPresenter: TabPresenter,
+ ) {
}
async selectPrev(count: number): Promise<any> {