mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-19 05:52:49 +08:00
Merge pull request #1 from zalun/fix_firefoxos
there was an error in the object definition
This commit is contained in:
commit
f973965a03
@ -26,10 +26,10 @@
|
|||||||
|
|
||||||
|
|
||||||
var cordova = require('cordova');
|
var cordova = require('cordova');
|
||||||
|
var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
||||||
|
|
||||||
getConnectionInfo: function (win, fail, args) {
|
getConnectionInfo: function (win, fail, args) {
|
||||||
/*
|
/*
|
||||||
@ -57,4 +57,4 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
require("cordova/firefoxos/commandProxy").add("Network", module.exports);
|
require("cordova/firefoxos/commandProxy").add("Network", module.exports);
|
||||||
|
Loading…
Reference in New Issue
Block a user