You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/09/09 02:54:04 UTC

[cordova-common] branch master updated: (windows) Add .jsproj as file extension for XML files (#62) (#78)

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

erisu 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 2704c91  (windows) Add .jsproj as file extension for XML files (#62) (#78)
2704c91 is described below

commit 2704c9140c629610e6d7d6398e315ea8d8ddeda6
Author: holyhoehle <ho...@hotmail.com>
AuthorDate: Mon Sep 9 04:53:59 2019 +0200

    (windows) Add .jsproj as file extension for XML files (#62) (#78)
    
    Fixes #62
---
 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 d48b29d..b346978 100644
--- a/src/ConfigChanges/ConfigFile.js
+++ b/src/ConfigChanges/ConfigFile.js
@@ -69,7 +69,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' || ext === '.storyboard') {
+    if (ext === '.xml' || ext === '.appxmanifest' || ext === '.storyboard' || ext === '.jsproj') {
         self.type = 'xml';
         self.data = modules.xml_helpers.parseElementtreeSync(filepath);
     } else {


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