Skip to content

Commit

Permalink
fixed broken FetchNetworkAdapter.cors_prox attribute (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
chschnell authored Nov 26, 2024
1 parent 26941f9 commit 298da23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/fetch_network.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async function on_data_http(data)
this.write(new Uint8Array(ab));
this.close();
*/
const fetch_url = this.cors_proxy ? this.cors_proxy + encodeURIComponent(target.href) : target.href;
const fetch_url = this.net.cors_proxy ? this.net.cors_proxy + encodeURIComponent(target.href) : target.href;
const encoder = new TextEncoder();
let response_started = false;
fetch(fetch_url, opts).then((resp) => {
Expand Down

0 comments on commit 298da23

Please sign in to comment.