diff --git a/src/firefoxos/NetworkProxy.js b/src/firefoxos/NetworkProxy.js index 831706b..ec315d2 100644 --- a/src/firefoxos/NetworkProxy.js +++ b/src/firefoxos/NetworkProxy.js @@ -26,10 +26,10 @@ var cordova = require('cordova'); +var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection; module.exports = { - var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection; getConnectionInfo: function (win, fail, args) { /* @@ -57,4 +57,4 @@ module.exports = { } }; -require("cordova/firefoxos/commandProxy").add("Network", module.exports); \ No newline at end of file +require("cordova/firefoxos/commandProxy").add("Network", module.exports);