mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-11-05 04:33:24 +01:00
fix typo
This commit is contained in:
parent
7d9d3ad8ac
commit
a2bf6257ce
@ -10,17 +10,17 @@ let sending = false;
|
||||
|
||||
export function get (url) {
|
||||
return new Promise((resolve, reject) => {
|
||||
addQue({ url, type: 'GET', resolve, reject });
|
||||
addQueue({ url, type: 'GET', resolve, reject });
|
||||
});
|
||||
}
|
||||
|
||||
export function post (url, data) {
|
||||
return new Promise((resolve, reject) => {
|
||||
addQue({ url, type: 'POST', data, resolve, reject });
|
||||
addQueue({ url, type: 'POST', data, resolve, reject });
|
||||
});
|
||||
}
|
||||
|
||||
function addQue(ajaxData) {
|
||||
function addQueue(ajaxData) {
|
||||
if (sending) {
|
||||
sendQueue(ajaxData);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user