aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/ConsoleFrameUseCase.ts
blob: b118c7f3cc7819ea42aadf9e70ce6e4b728a0bf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { injectable, inject } from "tsyringe";
import ConsoleFramePresenter from "../presenters/ConsoleFramePresenter";

@injectable()
export default class ConsoleFrameUseCase {
  constructor(
    @inject("ConsoleFramePresenter")
    private consoleFramePresenter: ConsoleFramePresenter
  ) {}

  unfocus() {
    window.focus();
    this.consoleFramePresenter.blur();
  }
}