Skip to content

Commit 19296c8

Browse files
committed
fix(navigation): Whitelist Cordova Windows Phone style protocols
1 parent c40e36c commit 19296c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: js/angular/service/ionicConfig.js

+7
Original file line numberDiff line numberDiff line change
@@ -614,4 +614,11 @@ IonicModule
614614
provider.$get = function() {
615615
return provider;
616616
};
617+
})
618+
// Fix for URLs in Cordova apps on Windows Phone
619+
// http://blogs.msdn.com/b/msdn_answers/archive/2015/02/10/
620+
// running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx
621+
.config(function($compileProvider) {
622+
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);z
623+
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|ms-appx|x-wmapp0):|data:image\//);
617624
});

0 commit comments

Comments
 (0)