aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/version.ts
blob: ec0f63494483c6591db3a9b57a339dc5e742e1ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import VersionInteractor from '../usecases/version';

export default class VersionController {
  constructor() {
    this.versionInteractor = new VersionInteractor();
  }

  notifyIfUpdated() {
    browser.runtime.onInstalled.addListener(() => {
      return this.versionInteractor.notify();
    });
  }
}