mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-10 06:02:13 +00:00
Replace jquery usage with native functions
This commit is contained in:
parent
b5b336043e
commit
6275575358
@ -68,7 +68,7 @@ function saveToPlayFab(root) {
|
||||
TitleId: titleId,
|
||||
PlayFabId: playFabId,
|
||||
// convert array into object with numbers as keys
|
||||
Data: $.extend({}, chunks)
|
||||
Data: chunks.mapToObject((_, index) => index, value => value)
|
||||
}
|
||||
try {
|
||||
PlayFab.ClientApi.UpdateUserData(requestData, saveToPlayFabCallback);
|
||||
|
@ -218,11 +218,13 @@ function gainedInfinities() {
|
||||
|
||||
setInterval(() => {
|
||||
if (isLocalEnvironment()) return;
|
||||
$.getJSON("version.txt", data => {
|
||||
if (data.version > player.version) {
|
||||
Modal.message.show(data.message, updateRefresh);
|
||||
}
|
||||
});
|
||||
fetch("version.txt")
|
||||
.then(response => response.json())
|
||||
.then(json => {
|
||||
if (json.version > player.version) {
|
||||
Modal.message.show(json.message, updateRefresh);
|
||||
}
|
||||
});
|
||||
}, 60000);
|
||||
|
||||
// TODO: remove before release
|
||||
|
0
response.json())
Normal file
0
response.json())
Normal file
Loading…
Reference in New Issue
Block a user