Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 74be568

Browse files
committed
fix(tabs): fix csp check
- Fix CSP check for inline styles Fixes #5214
1 parent 66d4300 commit 74be568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ module.exports = function(grunt) {
433433
.replace(/\\/g, '\\\\')
434434
.replace(/'/g, "\\'")
435435
.replace(/\r?\n/g, '\\n');
436-
js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp() && angular.element(document).find('head').prepend('<style type="text/css">${css}</style>'); });`;
436+
js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp().noInlineStyle && angular.element(document).find('head').prepend('<style type="text/css">${css}</style>'); });`;
437437
state.js.push(js);
438438

439439
return state;

0 commit comments

Comments
 (0)