Skip to content

Commit

Permalink
Merge pull request #10 from kumold/patch-1
Browse files Browse the repository at this point in the history
fix url from fetch
  • Loading branch information
acsbendi authored Dec 13, 2023
2 parents 974f3dd + de61b97 commit 770cef6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ XMLHttpRequest.prototype.send = function (body) {
window._fetch = window.fetch;
window.fetch = function () {
const url = arguments[1] && 'url' in arguments[1] ? arguments[1]['url'] : "/";
const url = arguments[0];
const fullUrl = getFullUrl(url);
const method = arguments[1] && 'method' in arguments[1] ? arguments[1]['method'] : "GET";
const body = arguments[1] && 'body' in arguments[1] ? arguments[1]['body'] : "";
Expand Down

0 comments on commit 770cef6

Please sign in to comment.