Skip to content

Commit e4b50ab

Browse files
author
Corey Wilson
committed
fix(grunt): do not inject uib css by default (issue angular-ui#5548)
1 parent c8922a2 commit e4b50ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gruntfile.js

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

442442
return state;

0 commit comments

Comments
 (0)