diff --git a/js/pacosako_io.js b/js/pacosako_io.js index a38b91a..6a76375 100644 --- a/js/pacosako_io.js +++ b/js/pacosako_io.js @@ -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) => {