You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2016/12/02 14:17:00 UTC

[2/2] cordova-windows git commit: CB-12192 - No SplashScreen on Windows when content.src is subpage

CB-12192 - No SplashScreen on Windows when content.src is subpage


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/e4e9573b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/e4e9573b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/e4e9573b

Branch: refs/heads/master
Commit: e4e9573bd9be43b37dbd0c53b5c39c14ef2130da
Parents: 973fe6d
Author: daserge <v-...@microsoft.com>
Authored: Thu Dec 1 20:50:27 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Thu Dec 1 20:50:27 2016 +0300

----------------------------------------------------------------------
 template/cordova/prebuild.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/e4e9573b/template/cordova/prebuild.js
----------------------------------------------------------------------
diff --git a/template/cordova/prebuild.js b/template/cordova/prebuild.js
index f8aab91..0e38f0b 100644
--- a/template/cordova/prebuild.js
+++ b/template/cordova/prebuild.js
@@ -64,7 +64,7 @@ module.exports = function patch(platform) {
 
     if (shell.grep(reBaseJs, startPageFilePath).length === 0) {
         // 3. If it doesn't - patch page to include base.js ref before cordova.js
-        var appendBaseJsRe = /( *)(<script\s+(?:type="text\/javascript"\s+)?src="cordova\.js">\s*<\/script>)/;
+        var appendBaseJsRe = /( *)(<script\s+(?:type="text\/javascript"\s+)?src="(.*\/)?cordova\.js">\s*<\/script>)/;
         var subst = '$1<script type="text/javascript" src="' + basejsSrc + '"></script>\n$1$2';
 
         shell.sed('-i', appendBaseJsRe, subst, startPageFilePath);


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