Skip to content

Commit 489e108

Browse files
committed
feat(config): add support for gps and sms links
Closes #4305 This makes the url patterns follow the whitelist plugin
1 parent ef1b600 commit 489e108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,6 @@ IonicModule
651651
// http://blogs.msdn.com/b/msdn_answers/archive/2015/02/10/
652652
// running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx
653653
.config(['$compileProvider', function($compileProvider) {
654-
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|tel|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
654+
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|sms|tel|geo|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
655655
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|x-wmapp0):|data:image\//);
656656
}]);

0 commit comments

Comments
 (0)