projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
621daf3
)
inliner.js
author
Alan Knowles
<alan@roojs.com>
Thu, 12 Nov 2015 05:28:06 +0000
(13:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 12 Nov 2015 05:28:06 +0000
(13:28 +0800)
inliner.js
patch
|
blob
|
history
diff --git
a/inliner.js
b/inliner.js
index
5b87448
..
35197a2
100644
(file)
--- a/
inliner.js
+++ b/
inliner.js
@@
-12,7
+12,13
@@
var style;
var returns = {};
+
+
style = window.getComputedStyle(dom, null);
+ if (style.display = 'none') {
+ dom.parentElement.removeChild(dom);
+ }
+
for(var i=0;i<style.length;i++){
var prop = style[i];
//var camel = prop.replace(/\-([a-z])/g, camelize);