mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
Network: Changed connection to return a Typescript string
This commit is contained in:
parent
0c486b0965
commit
3748bccad2
@ -54,7 +54,7 @@ export class Network {
|
||||
* Return the network connection type
|
||||
*/
|
||||
@CordovaProperty
|
||||
static get connection(): String { return navigator.connection.type; }
|
||||
static get connection(): string { return navigator.connection.type; }
|
||||
|
||||
/**
|
||||
* Get notified when the device goes offline
|
||||
|
Loading…
Reference in New Issue
Block a user