You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/05/17 03:22:05 UTC

git commit: CB-3280 start page can now be relative, inside the www folder

Updated Branches:
  refs/heads/master db6c6d2f4 -> 640c40540


CB-3280 start page can now be relative, inside the www folder


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

Branch: refs/heads/master
Commit: 640c405400c168a0103f407f927ffbac2222a1da
Parents: db6c6d2
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu May 16 18:20:58 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu May 16 18:20:58 2013 -0700

----------------------------------------------------------------------
 .../standalone/cordovalib/CordovaView.xaml.cs      |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/640c4054/templates/standalone/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/CordovaView.xaml.cs b/templates/standalone/cordovalib/CordovaView.xaml.cs
index bdd4d62..e1ad8da 100644
--- a/templates/standalone/cordovalib/CordovaView.xaml.cs
+++ b/templates/standalone/cordovalib/CordovaView.xaml.cs
@@ -165,7 +165,14 @@ namespace WPCordovaClassLib
 
             if (configHandler.ContentSrc != null)
             {
-                //this.StartPageUri = new Uri(configHandler.ContentSrc);
+                if (Uri.IsWellFormedUriString(configHandler.ContentSrc, UriKind.Absolute))
+                {
+                    this.StartPageUri = new Uri(configHandler.ContentSrc, UriKind.Absolute);
+                }
+                else
+                {
+                    this.StartPageUri = new Uri(AppRoot + "www/" + configHandler.ContentSrc, UriKind.Relative);
+                } 
             }         
 
             nativeExecution = new NativeExecution(ref this.CordovaBrowser);