mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-04-26 21:50:10 +08:00
CB-8185 Fixes typo in cordova.platformId
This commit is contained in:
parent
8023cd46dd
commit
481bdd93b0
@ -28,7 +28,7 @@ var exec = require('cordova/exec'),
|
|||||||
// object in bootstrap.js.
|
// object in bootstrap.js.
|
||||||
// Browser platform do not need to define this property, because
|
// Browser platform do not need to define this property, because
|
||||||
// it is already supported by modern browsers
|
// it is already supported by modern browsers
|
||||||
if (cordova.platforId !== 'browser' && typeof navigator != 'undefined') {
|
if (cordova.platformId !== 'browser' && typeof navigator != 'undefined') {
|
||||||
utils.defineGetter(navigator, 'onLine', function() {
|
utils.defineGetter(navigator, 'onLine', function() {
|
||||||
return this.connection.type != 'none';
|
return this.connection.type != 'none';
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user