Commit 5ef159ed authored by yann300's avatar yann300

add detect network

parent f11b19fb
...@@ -12,6 +12,12 @@ module.exports = (fileProviders, compiler, udapp, tabbedMenu) => { ...@@ -12,6 +12,12 @@ module.exports = (fileProviders, compiler, udapp, tabbedMenu) => {
}, },
updateTitle: (mod, title, cb) => { updateTitle: (mod, title, cb) => {
tabbedMenu.updateTabTitle(mod, title) tabbedMenu.updateTabTitle(mod, title)
if (cb) cb()
},
detectNetWork: (mod, cb) => {
executionContext.detectNetwork((error, network) => {
cb(error, network)
})
} }
}, },
config: { config: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment