projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd9668
)
inliner.js
author
Alan Knowles
<alan@roojs.com>
Thu, 12 Nov 2015 05:43:56 +0000
(13:43 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 12 Nov 2015 05:43:56 +0000
(13:43 +0800)
inliner.js
patch
|
blob
|
history
diff --git
a/inliner.js
b/inliner.js
index
8632ffc
..
f2b4896
100644
(file)
--- a/
inliner.js
+++ b/
inliner.js
@@
-35,7
+35,12
@@
dom.parentElement.removeChild(dom);
return;
}
-
+ var pstyle = false;
+ if (dom.nodeName != 'BODY') {
+ pstyle = window.getComputedStyle(dom.parentNode, null);
+
+ }
+ var style = window.getComputedStyle(dom, null);
for(var i=0;i<keys.length;i++){