Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ionic.Platform.ready(function () {
- if(window.Connection) {
- if(navigator.connection.type == Connection.NONE) {
- internetConnectionOff();
- } else {
- internetConnectionOn();
- }
- }
- });
- function internetConnectionOn() {
- loadMapsApi();
- }
- function internetConnectionOff() {
- alert("Brak połączenia z internetem");
- ionic.Platform.exitApp();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement