Removed unnecessary anonymous function
This commit is contained in:
parent
4e1e3cb2ee
commit
60e4a06df8
@ -18,7 +18,7 @@ api.post = function(fn, params, callback) {
|
|||||||
|
|
||||||
const success = (data) => {
|
const success = (data) => {
|
||||||
|
|
||||||
setTimeout(() => loadingBar.hide(), 100)
|
setTimeout(loadingBar.hide, 100)
|
||||||
|
|
||||||
// Catch errors
|
// Catch errors
|
||||||
if (typeof data==='string' && data.substring(0, 7)==='Error: ') {
|
if (typeof data==='string' && data.substring(0, 7)==='Error: ') {
|
||||||
|
Loading…
Reference in New Issue
Block a user