aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/version.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/controllers/version.js')
-rw-r--r--src/background/controllers/version.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/background/controllers/version.js b/src/background/controllers/version.js
new file mode 100644
index 0000000..ec0f634
--- /dev/null
+++ b/src/background/controllers/version.js
@@ -0,0 +1,13 @@
+import VersionInteractor from '../usecases/version';
+
+export default class VersionController {
+ constructor() {
+ this.versionInteractor = new VersionInteractor();
+ }
+
+ notifyIfUpdated() {
+ browser.runtime.onInstalled.addListener(() => {
+ return this.versionInteractor.notify();
+ });
+ }
+}