diff options
-rwxr-xr-x | js/document/html-document.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js index 323c1488..3f39c4df 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js | |||
@@ -623,7 +623,10 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
623 | for (var k in query) { | 623 | for (var k in query) { |
624 | if (query[k].href === this._document.styleSheets[i].href) { | 624 | if (query[k].href === this._document.styleSheets[i].href) { |
625 | //Disabling style sheet to reload via inserting in style tag | 625 | //Disabling style sheet to reload via inserting in style tag |
626 | var tempCSS = query[k].cloneNode(true); | ||
627 | tempCSS.setAttribute('data-ninja-template', 'true'); | ||
626 | query[k].setAttribute('disabled', 'true'); | 628 | query[k].setAttribute('disabled', 'true'); |
629 | this.iframe.contentWindow.document.head.appendChild(tempCSS); | ||
627 | //Inserting tag | 630 | //Inserting tag |
628 | this._templateDocument.head.insertBefore(tag, query[k]); | 631 | this._templateDocument.head.insertBefore(tag, query[k]); |
629 | } | 632 | } |