Commit 90587cd059b308e1a88541994cecb01ee681348c
1 parent
2a9ba5d4
Exists in
master
and in
4 other branches
Fixes #157 - Add 'whatsapp' to href whitelist
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/app/index.config.js
... | ... | @@ -6,6 +6,7 @@ |
6 | 6 | // .config(configWhitelist) |
7 | 7 | .config(configHeadersInterceptor) |
8 | 8 | .config(configLocationProvider) |
9 | + .config(configHrefWhitelist) | |
9 | 10 | .config(configBreadcrumbProvider) |
10 | 11 | .config(config); |
11 | 12 | |
... | ... | @@ -53,6 +54,11 @@ |
53 | 54 | } |
54 | 55 | |
55 | 56 | /** @ngInject */ |
57 | + function configHrefWhitelist($compileProvider) { | |
58 | + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|file|whatsapp):/); | |
59 | + } | |
60 | + | |
61 | + /** @ngInject */ | |
56 | 62 | function configBreadcrumbProvider($breadcrumbProvider) { |
57 | 63 | $breadcrumbProvider.setOptions({ |
58 | 64 | prefixStateName: 'inicio', | ... | ... |