WebUI: migrate to fetch API

And away from mootools.

PR #22037.
This commit is contained in:
Chocobo1
2024-12-22 17:51:19 +08:00
committed by GitHub
parent 9709672b34
commit a841fe9320
34 changed files with 888 additions and 811 deletions

View File

@@ -62,8 +62,7 @@ window.qBittorrent.Cache ??= (() => {
if (!response.ok)
return;
const responseText = await response.text();
const responseJSON = JSON.parse(responseText);
const responseJSON = await response.json();
deepFreeze(responseJSON);
this.#m_store = responseJSON;
});