mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: open PR in firefox
This commit is contained in:
parent
8fa1802555
commit
b28c9e0fe8
1 changed files with 2 additions and 1 deletions
|
|
@ -95,7 +95,8 @@ export async function continuousLoadPages(doc: Document, onReceivePage?: (doc: D
|
|||
if (!fragment) break
|
||||
const src = fragment.getAttribute('src')
|
||||
if (!src) break
|
||||
doc = await getDOM(src)
|
||||
// Using `src` directly below would fail in Firefox if the src is an absolute path
|
||||
doc = await getDOM(new URL(src, window.location.origin).href)
|
||||
documents.push(doc)
|
||||
onReceivePage?.(doc)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue