diff --git a/src/window.coffee b/src/window.coffee index 7f7bc8bee..7a2201f0d 100644 --- a/src/window.coffee +++ b/src/window.coffee @@ -178,7 +178,11 @@ window.removeStylesheet = (stylesheetPath) -> window.stylesheetElementForId(fullPath).remove() window.applyStylesheet = (id, text, ttype = 'bundled') -> - unless window.stylesheetElementForId(id).length + styleElement = window.stylesheetElementForId(id) + if styleElement.length + console.log 'replacing style in', styleElement + styleElement.text(text) + else if $("head style.#{ttype}").length $("head style.#{ttype}:last").after "" else