remove unnecessary variable

master
Aevann 2023-08-12 13:49:37 +03:00
parent e9f09e1fe9
commit 0dc5761cda
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function postToast(t, url, data, extraActionsOnSuccess) {
message = getMessageFromJsonData(success, JSON.parse(xhr[0].response));
}
showToast(success, message);
if (success && extraActionsOnSuccess) result = extraActionsOnSuccess(xhr[0]);
if (success && extraActionsOnSuccess) extraActionsOnSuccess(xhr[0]);
return success;
};
xhr[0].send(xhr[1]);