parent
dfeb7e7549
commit
f961c205a7
5 changed files with 27 additions and 26 deletions
@ -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(); |
||||
}); |
||||
} |
||||
} |
@ -1,6 +1,6 @@ |
||||
const NOTIFICATION_ID = 'vimvixen-update'; |
||||
|
||||
export default class Notifier { |
||||
export default class NotifyPresenter { |
||||
notify(title, message, onclick) { |
||||
const listener = (id) => { |
||||
if (id !== NOTIFICATION_ID) { |
Reference in new issue