generated from KyuubiRan/EzXHepler-template
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid promise chain in GM_xmlhttpRequest
Currently, the design principle of ChromeXt is 1. await GM_xmlhttpRequest return the reponse data; 2. await GM.xmlHttpRequest return the xhr object; 3. onload / onerror take the xhr object as the only parameters. We must deconstruct the xhr (proxy) to avoid promise chaining so that the above design is valid.
- Loading branch information
1 parent
974ab6e
commit 9de7f62
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters