mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-03-04 08:02:50 +08:00
Merge branch 'CB-7166' of https://github.com/BBosman/cordova-plugin-network-information
This commit is contained in:
commit
3a8e65870c
@ -24,7 +24,7 @@ var exec = require('cordova/exec'),
|
|||||||
utils = require('cordova/utils');
|
utils = require('cordova/utils');
|
||||||
|
|
||||||
// Link the onLine property with the Cordova-supplied network info.
|
// Link the onLine property with the Cordova-supplied network info.
|
||||||
// This works because we clobber the naviagtor object with our own
|
// This works because we clobber the navigator object with our own
|
||||||
// object in bootstrap.js.
|
// object in bootstrap.js.
|
||||||
if (typeof navigator != 'undefined') {
|
if (typeof navigator != 'undefined') {
|
||||||
utils.defineGetter(navigator, 'onLine', function() {
|
utils.defineGetter(navigator, 'onLine', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user