Skip to content

Commit

Permalink
fix(navigation): Whitelist Cordova Windows Phone style protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygovier committed Apr 23, 2015
1 parent c40e36c commit 19296c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/angular/service/ionicConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,4 +614,11 @@ IonicModule
provider.$get = function() {
return provider;
};
})
// Fix for URLs in Cordova apps on Windows Phone
// http://blogs.msdn.com/b/msdn_answers/archive/2015/02/10/
// running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx
.config(function($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);z
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|ms-appx|x-wmapp0):|data:image\//);
});

0 comments on commit 19296c8

Please sign in to comment.