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
|
* Return the network connection type
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty
|
||||||
static get connection(): String { return navigator.connection.type; }
|
static get connection(): string { return navigator.connection.type; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get notified when the device goes offline
|
* Get notified when the device goes offline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user