mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
docs(): refactor
This commit is contained in:
parent
5f63493bdc
commit
e411146e8f
@ -30,9 +30,9 @@ declare const navigator: any;
|
|||||||
*
|
*
|
||||||
* // watch network for a connection
|
* // watch network for a connection
|
||||||
* let connectSubscription = this.network.onConnect().subscribe(() => {
|
* let connectSubscription = this.network.onConnect().subscribe(() => {
|
||||||
* console.log('network connected!');
|
* console.log('network connected!');
|
||||||
* // We just got a connection but we need to wait briefly
|
* // We just got a connection but we need to wait briefly
|
||||||
*
// 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 (this.network.type === 'wifi') {
|
* if (this.network.type === 'wifi') {
|
||||||
|
Loading…
Reference in New Issue
Block a user