fix(ii): send configured User-Agent to Konachan requests (#3232)

This commit is contained in:
Minh
2026-05-24 23:51:29 +02:00
committed by GitHub
5 changed files with 25 additions and 11 deletions
@@ -405,8 +405,8 @@ Singleton {
}
try {
// Required for danbooru
if (currentProvider == "danbooru") {
// Required for danbooru and konachan
if (["danbooru", "konachan"].includes(currentProvider)) {
xhr.setRequestHeader("User-Agent", defaultUserAgent)
}
else if (currentProvider == "zerochan") {
@@ -457,8 +457,8 @@ Singleton {
}
try {
// Required for danbooru
if (currentProvider == "danbooru") {
// Required for danbooru and konachan
if (["danbooru", "konachan"].includes(currentProvider)) {
xhr.setRequestHeader("User-Agent", defaultUserAgent)
}
xhr.send()