Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Commit

Permalink
CB-3280 start page can now be relative, inside the www folder
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed May 17, 2013
1 parent 1881859 commit 4ab61a7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/standalone/cordovalib/CordovaView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,18 @@ public CordovaView()
configHandler = new ConfigHandler();
configHandler.LoadAppPackageConfig();

if (configHandler.ContentSrc != null)
{
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);
}
}

// initializes native execution logic
nativeExecution = new NativeExecution(ref this.CordovaBrowser);
bmHelper = new BrowserMouseHelper(ref this.CordovaBrowser);
Expand Down

0 comments on commit 4ab61a7

Please sign in to comment.