Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Workaround for unknown splashscreen (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Brody authored and janpio committed May 6, 2019
1 parent 95401b3 commit c52b81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/cordova/lib/prepare.js
Expand Up @@ -510,7 +510,7 @@ function getTargetForImage (splash) {

// Fall back on find by size for old non-MRT syntax:
var targetImg = findPlatformImage(splash.width, splash.height);
if (!targetImg.targetProject) {
if (!targetImg || !targetImg.targetProject) {
return;
}

Expand Down

0 comments on commit c52b81c

Please sign in to comment.