mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Fix indentation
This commit is contained in:
@@ -848,8 +848,8 @@ class Loader {
|
||||
for (const el of doc.querySelectorAll('[srcset]'))
|
||||
el.setAttribute('srcset', await replaceSeries(el.getAttribute('srcset'),
|
||||
/(\s*)(.+?)\s*((?:\s[\d.]+[wx])+\s*(?:,|$)|,\s+|$)/g,
|
||||
(_, p1, p2, p3) => this.loadHref(p2, href, parents)
|
||||
.then(p2 => `${p1}${p2}${p3}`)))
|
||||
(_, p1, p2, p3) => this.loadHref(p2, href, parents)
|
||||
.then(p2 => `${p1}${p2}${p3}`)))
|
||||
// replace inline styles
|
||||
for (const el of doc.querySelectorAll('style'))
|
||||
if (el.textContent) el.textContent =
|
||||
|
||||
Reference in New Issue
Block a user