diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-05 18:01:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-05 18:01:46 +0900 |
commit | e68c0b0f8002207c32c2e8d387b17f5f4f2ccae9 (patch) | |
tree | 5b9aadd2404240012b7c595657fef57d1c3c30d6 /src/background | |
parent | c9c18966e6f59e8bc16dfd65394041491cba539e (diff) | |
parent | 8b72102ba5b9b094d774b5bb0bf6c685e00682b5 (diff) |
Merge pull request #385 from ueokande/update_notification
Update notification
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/background/index.js b/src/background/index.js index 3ef712f..ff27796 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -3,6 +3,7 @@ import messages from 'shared/messages'; import BackgroundComponent from 'background/components/background'; import reducers from 'background/reducers'; import { createStore } from 'shared/store'; +import * as versions from 'shared/versions'; const store = createStore(reducers, (e, sender) => { console.error('Vim-Vixen:', e); @@ -17,3 +18,12 @@ const store = createStore(reducers, (e, sender) => { const backgroundComponent = new BackgroundComponent(store); store.dispatch(settingActions.load()); + +versions.checkUpdated().then((updated) => { + if (!updated) { + return; + } + return versions.notify(); +}).then(() => { + return versions.commit(); +}); |