mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
Stop using document write, so that we are compatible with async script loader
This commit is contained in:
parent
0084cb5ca4
commit
3224862a9c
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
|
@ -284,7 +284,7 @@ def gen_css(cssFile, minify = false)
|
|||
css.gsub! /'/, "\\\\'"
|
||||
css.gsub! /\n/, "\\n"
|
||||
|
||||
return %Q{document.write('<style type="text/css">#{css}</style>');}
|
||||
return %Q{angular.element(document).find('head').append('<style type="text/css">#{css}</style>');}
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue