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

Fix unhandled rejection test error #1399

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/module-mocks.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
var ngCordovaMocks = angular.module('ngCordovaMocks', []);
var ngCordovaMocks = angular.module('ngCordovaMocks', []);
ngCordovaMocks.config(['$qProvider', function ($qProvider) {
$qProvider.errorOnUnhandledRejections(false);
}]);
8 changes: 4 additions & 4 deletions src/plugins/splashscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ angular.module('ngCordova.plugins.splashscreen', [])
.factory('$cordovaSplashscreen', [function () {

return {
hide: function () {
return navigator.splashscreen.hide();
hide: function() {
return navigator.splashscreen ? navigator.splashscreen.hide() : null;
},

show: function () {
return navigator.splashscreen.show();
show: function() {
return navigator.splashscreen ? navigator.splashscreen.show() : null;
}
};

Expand Down