add detect network

pull/1/head
yann300 6 years ago
parent f11b19fb86
commit 5ef159edb7
  1. 6
      src/app/plugin/pluginAPI.js

@ -12,6 +12,12 @@ module.exports = (fileProviders, compiler, udapp, tabbedMenu) => {
},
updateTitle: (mod, title, cb) => {
tabbedMenu.updateTabTitle(mod, title)
if (cb) cb()
},
detectNetWork: (mod, cb) => {
executionContext.detectNetwork((error, network) => {
cb(error, network)
})
}
},
config: {

Loading…
Cancel
Save