Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 9123f15

Browse files
committed
Add code to the angular app to add support that allows images to display in the new version of webkit
1 parent d6e3968 commit 9123f15

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

digexp-dashboard/js/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ var dashboardApp = angular.module('dashboardApp',
1313
var firstRoute = true;
1414
var digExperienceDashboard = 'Digital Experience Dashboard';
1515
// Configure routes for the different views
16+
dashboardApp.config(['$compileProvider',
17+
function($compileProvider) {
18+
$compileProvider.imgSrcSanitizationWhitelist(/^\s*((https?|ftp|file|blob|chrome-extension):|data:image\/)/);
19+
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|file:chrome-extension):/);
20+
}]);
1621
dashboardApp.config(['$routeProvider', function($routeProvider) {
1722
var redirect = '/listApps';
1823
if(firstRoute == true){

0 commit comments

Comments
 (0)