You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2018/05/05 06:02:08 UTC

[cordova-common] branch master updated: CB-13744: Recognize storyboards as XML files

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6fe3256  CB-13744: Recognize storyboards as XML files
6fe3256 is described below

commit 6fe3256fc1cf38ac482a7ff4cf8eea935628f469
Author: Jacques Caron <jc...@naxomedia.com>
AuthorDate: Sat May 5 08:02:06 2018 +0200

    CB-13744: Recognize storyboards as XML files
    
    This is to allow customization of the CDVLaunchScreen.storyboard to adjust contentmode and background color in config.xml.
---
 src/ConfigChanges/ConfigFile.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ConfigChanges/ConfigFile.js b/src/ConfigChanges/ConfigFile.js
index ec4a28a..6f4f4c9 100644
--- a/src/ConfigChanges/ConfigFile.js
+++ b/src/ConfigChanges/ConfigFile.js
@@ -71,7 +71,7 @@ function ConfigFile_load () {
     var ext = path.extname(filepath);
     // Windows8 uses an appxmanifest, and wp8 will likely use
     // the same in a future release
-    if (ext === '.xml' || ext === '.appxmanifest') {
+    if (ext === '.xml' || ext === '.appxmanifest' || ext === '.storyboard') {
         self.type = 'xml';
         self.data = modules.xml_helpers.parseElementtreeSync(filepath);
     } else {

-- 
To stop receiving notification emails like this one, please contact
dpogue@apache.org.

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