mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 09:01:07 +08:00
Update network.ts
This commit is contained in:
parent
cabe327e9b
commit
e42f4d0079
@ -29,7 +29,7 @@ declare var navigator: any;
|
|||||||
*
// before we determine the connection type. Might need to wait
|
*
// before we determine the connection type. Might need to wait
|
||||||
* // prior to doing any api requests as well.
|
* // prior to doing any api requests as well.
|
||||||
* setTimeout(() => {
|
* setTimeout(() => {
|
||||||
* if (Network.connection === 'wifi') {
|
* if (Network.type === 'wifi') {
|
||||||
* console.log('we got a wifi connection, woohoo!');
|
* console.log('we got a wifi connection, woohoo!');
|
||||||
* }
|
* }
|
||||||
* }, 3000);
|
* }, 3000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user