Skip to content

Commit

Permalink
Merge pull request #645 from openkraken/fix/hmr
Browse files Browse the repository at this point in the history
fix: relative path of xhr.
  • Loading branch information
andycall authored Aug 31, 2021
2 parents 9b2f0aa + 102ed78 commit 44dd46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/polyfill/src/xhr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class XMLHttpRequest extends EventTarget {
}

let ssl = false;
let url = new URL(this.settings.url);
let url = new URL(this.settings.url, location.href);
let host;
// Determine the server
switch (url.protocol) {
Expand Down

0 comments on commit 44dd46d

Please sign in to comment.