Skip to content

Commit

Permalink
feat(config): add support for gps and sms links
Browse files Browse the repository at this point in the history
Closes #4305
This makes the url patterns follow the whitelist plugin
  • Loading branch information
mhartington committed Sep 7, 2015
1 parent ef1b600 commit 489e108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/service/ionicConfig.js
Expand Up @@ -651,6 +651,6 @@ IonicModule
// 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(['$compileProvider', function($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|tel|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|sms|tel|geo|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|x-wmapp0):|data:image\//);
}]);

0 comments on commit 489e108

Please sign in to comment.