setTimeout takes function
This commit is contained in:
parent
a6369c79e3
commit
a9f4759f41
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ function _getCurrencyData (callback) {
|
|||
if (hour > 8 && hour < 17) {
|
||||
delay = 100; // add 100ms slowdown
|
||||
}
|
||||
setTimeout(callback(data), delay);
|
||||
setTimeout(() => callback(data), delay);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue