Skip to content

Commit

Permalink
Don't add existing style tag again.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Jun 19, 2012
1 parent 60986cf commit 67588e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vendor/assets/javascripts/less_assets.js.coffee
Expand Up @@ -55,7 +55,8 @@ class window.LessAssets

style.appendChild rules

head = doc.getElementsByTagName('head')[0]
head.appendChild style
unless doc.getElementById(id)
head = doc.getElementsByTagName('head')[0]
head.appendChild style

result

0 comments on commit 67588e8

Please sign in to comment.