import Platform from '../plugins/platform.js'

export default (url, reject) => {
  if (Platform.is.cordova && navigator && navigator.app) {
    return navigator.app.loadUrl(url, {
      openExternal: true
    })
  }

  let win = window.open(url, '_blank')

  if (win) {
    win.focus()
    return win
  }
  else {
    reject()
  }
}

@@ -310,16 +310,26 @@
 se %7B%0A   
+ reject &&
  reject(

Add default callback function to openUrl (#2661)