Skip to content

Commit

Permalink
add back anura.net.fetch as priority for fetch when available
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerIn-wonderland committed Jul 28, 2024
1 parent 45aec8d commit febb411
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 @@ -72,7 +72,7 @@ FetchNetworkAdapter.prototype.destroy = function()
// DNS over HTTPS fetch
async function dohdns(q) {

const preffered_fetch = fetch;
const preffered_fetch = (window.anura?.net?.fetch) || fetch;
const req = await preffered_fetch(`https://dns.google/resolve?name=${q.name.join(".")}&type=${q.type}`)
if (req.status == 200) {
return await req.json();
Expand Down

0 comments on commit febb411

Please sign in to comment.