mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Fix disappearing page bug when opening in new tab
This commit is contained in:
parent
93352f08b5
commit
e51136e50a
1 changed files with 1 additions and 1 deletions
|
@ -5996,7 +5996,7 @@ import { Readability } from "@mozilla/readability"
|
|||
//#content_helper
|
||||
export async function readerurl() {
|
||||
document.querySelectorAll(".TridactylStatusIndicator").forEach(ind => ind.parentNode.removeChild(ind))
|
||||
const article = new Readability(document).parse()
|
||||
const article = new Readability(document.cloneNode(true) as any as Document).parse()
|
||||
article["link"] = window.location.href
|
||||
return browser.runtime.getURL("static/reader.html#" + btoa(encodeURIComponent(JSON.stringify(article))))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue