forked from Shinonome/dots-hyprland
Fix Booru pending query not dismissing when fetch fails (#2207)
This commit is contained in:
@@ -399,6 +399,9 @@ Singleton {
|
|||||||
}
|
}
|
||||||
else if (xhr.readyState === XMLHttpRequest.DONE) {
|
else if (xhr.readyState === XMLHttpRequest.DONE) {
|
||||||
console.log("[Booru] Request failed with status: " + xhr.status)
|
console.log("[Booru] Request failed with status: " + xhr.status)
|
||||||
|
newResponse.message = root.failMessage
|
||||||
|
root.runningRequests--;
|
||||||
|
root.responses = [...root.responses, newResponse]
|
||||||
}
|
}
|
||||||
root.responseFinished()
|
root.responseFinished()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user