From 400cc3c2605b7ac85c057db094aa0887d6671d56 Mon Sep 17 00:00:00 2001 From: Eric Pollmann Date: Thu, 7 May 2015 16:10:49 -0700 Subject: [PATCH] Ensure window.cordova.plugins so $ionicPlatform.ready handler succeeds. --- app/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/app.js b/app/js/app.js index 198e0cc..f2718b2 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -13,7 +13,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); } if (window.StatusBar) {