diff --git a/js/app.js b/js/app.js index 7219dc1..6e902f7 100644 --- a/js/app.js +++ b/js/app.js @@ -10,7 +10,7 @@ angular.module('starter', ['ionic', 'starter.controllers']) $ionicPlatform.ready(function() { // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard // for form inputs) - if (window.cordova && window.cordova.plugins.Keyboard) { + if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.disableScroll(true);