Skip to content

Commit b28c9e0

Browse files
committed
fix: open PR in firefox
1 parent 8fa1802 commit b28c9e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/platforms/GitHub/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ export async function continuousLoadPages(doc: Document, onReceivePage?: (doc: D
9595
if (!fragment) break
9696
const src = fragment.getAttribute('src')
9797
if (!src) break
98-
doc = await getDOM(src)
98+
// Using `src` directly below would fail in Firefox if the src is an absolute path
99+
doc = await getDOM(new URL(src, window.location.origin).href)
99100
documents.push(doc)
100101
onReceivePage?.(doc)
101102
}

0 commit comments

Comments
 (0)