aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/ConsoleFrameUseCase.ts
blob: 3c4b0a1f4784f79e9c91e7269ac8345789583127 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
  }
}