GitHub user rodms10 opened a pull request:

    https://github.com/apache/cordova-plugin-network-information/pull/19

    Fix network information type exception on fxos 2

    `navigator.connection` got removed from fxos 2, causing the plugin to crash 
when loading. Fixed by returning  `UNKNOWN` when `navigator.connection` is not 
defined.
    
    This is a quick fix to get this into next release ASAP, I'll now 
investigate if there's any alternative. There was nothing useful on [the mdn 
page](https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rodms10/cordova-plugin-network-information 
fxos2-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-network-information/pull/19.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #19
    
----
commit ec96704786cd8cbe2efbbb264d4032f7c237c2e8
Author: Rodrigo Silveira <rodri...@outlook.com>
Date:   2014-09-11T20:40:19Z

    Fix network information type exception on fxos 2

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to