Skip to content

Commit

Permalink
Use fully qualified URL in source map urls
Browse files Browse the repository at this point in the history
This lets Firefox find them relatively to node: URLs
  • Loading branch information
sebmarkbage committed Jun 4, 2024
1 parent f8d12b8 commit fcc3baf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fixtures/flight/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ async function hydrateApp() {
{
callServer,
findSourceMapURL(fileName) {
return '/source-maps?name=' + encodeURIComponent(fileName);
return (
document.location.origin +
'/source-maps?name=' +
encodeURIComponent(fileName)
);
},
}
);
Expand Down

0 comments on commit fcc3baf

Please sign in to comment.