mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
fix: Invalid invocation of fetch()
This commit is contained in:
parent
2996c087fd
commit
b796d3e1b8
1 changed files with 1 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ function FetchNetworkAdapter(bus, config)
|
|||
this.doh_server = config.doh_server;
|
||||
this.tcp_conn = {};
|
||||
this.eth_encoder_buf = create_eth_encoder_buf();
|
||||
this.fetch = fetch;
|
||||
this.fetch = (...args) => fetch(...args);
|
||||
|
||||
// Ex: 'https://corsproxy.io/?'
|
||||
this.cors_proxy = config.cors_proxy;
|
||||
|
|
@ -33,8 +33,6 @@ function FetchNetworkAdapter(bus, config)
|
|||
{
|
||||
this.send(data);
|
||||
}, this);
|
||||
|
||||
//Object.seal(this);
|
||||
}
|
||||
|
||||
FetchNetworkAdapter.prototype.destroy = function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue