domains/coconuts.co.js
authorAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 04:01:22 +0000 (12:01 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 04:01:22 +0000 (12:01 +0800)
domains/coconuts.co.js

index 89113d5..7326ad6 100644 (file)
         }
         
         // now we are dealing with non-print styles...
-        var newsheet = '';
         
         var ar = document.styleSheets[ss].rules;
         if (!ar) {
+            if (node.nodeName == 'STYLE' ) {
+                node.innerHTML = '';
+                continue;
+            }
+            node.setAttribute('href' , '');
             continue;
         }
         
+        var newsheet = '';
+        
+        
         for(i=ar.length-1; i > -1; i--){
             if(ar[i].cssText.indexOf("@media") < 0 ) {
                 continue;