diff --git a/src/@ionic-native/plugins/network/index.ts b/src/@ionic-native/plugins/network/index.ts index ef162d10..d196168e 100644 --- a/src/@ionic-native/plugins/network/index.ts +++ b/src/@ionic-native/plugins/network/index.ts @@ -89,7 +89,8 @@ export class Network extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'offline' + event: 'offline', + element: document }) onDisconnect(): Observable { return; @@ -101,7 +102,8 @@ export class Network extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'online' + event: 'online', + element: document }) onConnect(): Observable { return;