distinguish between 0 and undefined for afterTime when polling metadata
This commit is contained in:
parent
4f72d75642
commit
10e868f7b6
|
|
@ -370,7 +370,7 @@ function startMetaPoll(afterTime) {
|
|||
const thisRequest = meta.currentRequest = $.ajax({
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
url: `${API_BASE}/games${!afterTime ? '' : `/poll/${afterTime}`}`,
|
||||
url: `${API_BASE}/games${(afterTime === undefined) ? '' : `/poll/${afterTime}`}`,
|
||||
cache: false,
|
||||
timeout: afterTime ? LONG_TIMEOUT : SHORT_TIMEOUT,
|
||||
}).done((data, textStatus, jqXHR) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue