You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/05/06 18:57:35 UTC

[cordova-windows] branch master updated: Workaround for unknown splashscreen (#301)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git


The following commit(s) were added to refs/heads/master by this push:
     new c52b81c  Workaround for unknown splashscreen (#301)
c52b81c is described below

commit c52b81c3f6daff69b57939fcf62451d3c2a602dd
Author: Chris Brody <ch...@gmail.com>
AuthorDate: Mon May 6 14:57:30 2019 -0400

    Workaround for unknown splashscreen (#301)
---
 template/cordova/lib/prepare.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/template/cordova/lib/prepare.js b/template/cordova/lib/prepare.js
index d23a0b1..d7024a0 100644
--- a/template/cordova/lib/prepare.js
+++ b/template/cordova/lib/prepare.js
@@ -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;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org