mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-05 01:51:23 +01:00
Fully working
This commit is contained in:
parent
0b7da6d008
commit
cfda78807d
2 changed files with 6 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ window.ServerAPI = (function () {
|
|||
}
|
||||
}
|
||||
|
||||
async function postMapData(path, mapData, params) {
|
||||
async function postData(path, mapData, params) {
|
||||
if (!ok) {return null;}
|
||||
|
||||
const url = buildUrl(path, params);
|
||||
|
|
@ -140,7 +140,7 @@ window.ServerAPI = (function () {
|
|||
return {
|
||||
checkData,
|
||||
getJson,
|
||||
postMapData
|
||||
postData
|
||||
};
|
||||
})();
|
||||
|
||||
|
|
@ -150,5 +150,5 @@ window.ServerAPI = (function () {
|
|||
return;
|
||||
}
|
||||
|
||||
console.log("Ответ сервера (JSON):", data.info);
|
||||
console.log("[ServerAPI][enabled]: ", data.info);
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue