mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Do not set dir if not rtl
This commit is contained in:
parent
24cec85880
commit
7cd69da8b8
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@
|
|||
* capture them separately and concatenate them here with head and body tags
|
||||
* preserved.
|
||||
*/
|
||||
const contentCopyHtml = `<html dir="${dir}"><head>${document.head.innerHTML}</head><body>${contentCopyEl.innerHTML}</body></html>`
|
||||
const contentCopyHtml = `<html ${dir.toLowerCase() === 'rtl' ? 'dir="rtl"': ''}><head>${document.head.innerHTML}</head><body>${contentCopyEl.innerHTML}</body></html>`
|
||||
// Cleaning up the copy element
|
||||
contentCopyEl.remove()
|
||||
return contentCopyHtml
|
||||
|
|
|
|||
Loading…
Reference in a new issue