From 9d359a50e2568c7385247ab0e9ed0a16dc6ba7dd Mon Sep 17 00:00:00 2001 From: "Keith D. Moore" Date: Sat, 30 Apr 2016 14:58:46 -0500 Subject: [PATCH] fix usage comments add delay in setTimeout to ensure connection attribute has been set. --- src/plugins/network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/network.ts b/src/plugins/network.ts index 1bca41273..3986963ab 100644 --- a/src/plugins/network.ts +++ b/src/plugins/network.ts @@ -32,7 +32,7 @@ declare var navigator: any; * if (Network.connection === Connection.WIFI) { * console.log('we got a wifi connection, woohoo!'); * } - * }); + * }, 3000); * }); * * // stop connect watch