Browse Source

Removed unnecessary anonymous function

Tobias Reich 8 years ago
parent
commit
60e4a06df8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/scripts/api.js

+ 1 - 1
src/scripts/api.js

@@ -18,7 +18,7 @@ api.post = function(fn, params, callback) {
 
 	const success = (data) => {
 
-		setTimeout(() => loadingBar.hide(), 100)
+		setTimeout(loadingBar.hide, 100)
 
 		// Catch errors
 		if (typeof data==='string' && data.substring(0, 7)==='Error: ') {