inliner.js
authorAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 05:25:54 +0000 (13:25 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 05:25:54 +0000 (13:25 +0800)
inliner.js

index 42a2232..32e6112 100644 (file)
@@ -28,6 +28,10 @@ function(){
     for(var i =0;i < matches.length;i++) {
         fillStyle(matches[i]);
     }
+    var matches = document.getElementsByTagName('style');
+    for(var i =0;i < matches.length;i++) {
+        matches[i].parentElement.removeChild(matches[i]);
+    }