mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 09:24:49 +00:00
bug fix - do not apply styles on svg elements
This commit is contained in:
parent
917d8da78c
commit
74f4263678
1 changed files with 2 additions and 0 deletions
|
@ -324,6 +324,8 @@ function extractCss(appliedStyles, callback) {
|
|||
if (!$pre.is(':visible')) {
|
||||
$pre.replaceWith('');
|
||||
} else {
|
||||
if (pre.tagName.roLowerCase() === 'svg') return;
|
||||
|
||||
var classNames = pre.getAttribute('class');
|
||||
if (!classNames) {
|
||||
classNames = pre.getAttribute('id');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue