Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 0c8c0fd

Browse files
committed
feat(plugin:network): automatically start event listeners
1 parent 0fad39c commit 0c8c0fd

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

demo/www/lib/ngCordova/dist/ng-cordova.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3908,7 +3908,9 @@ angular.module('ngCordova.plugins.network', [])
39083908
$rootScope.$$listeners["$cordovaNetwork:online"] = [];
39093909
}
39103910
};
3911-
}]);
3911+
}])
3912+
.run(function ($cordovaNetwork) {
3913+
});
39123914

39133915
/* Created by Nic Raboy
39143916
* http://www.nraboy.com

demo/www/lib/ngCordova/dist/ng-cordova.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-cordova.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3908,7 +3908,9 @@ angular.module('ngCordova.plugins.network', [])
39083908
$rootScope.$$listeners["$cordovaNetwork:online"] = [];
39093909
}
39103910
};
3911-
}]);
3911+
}])
3912+
.run(function ($cordovaNetwork) {
3913+
});
39123914

39133915
/* Created by Nic Raboy
39143916
* http://www.nraboy.com

dist/ng-cordova.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/network.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ angular.module('ngCordova.plugins.network', [])
4848
$rootScope.$$listeners["$cordovaNetwork:online"] = [];
4949
}
5050
};
51-
}]);
51+
}])
52+
.run(function ($cordovaNetwork) {
53+
});

0 commit comments

Comments
 (0)