Compare commits

...

2 Commits

3 changed files with 6 additions and 4 deletions

View File

@ -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) => {

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "paco-sako",
"version": "0.8.5",
"version": "0.8.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "paco-sako",
"version": "0.8.5",
"version": "0.8.6",
"description": "Online version of the Paco Ŝako chess variation",
"keywords": [
"game",
@ -57,7 +57,9 @@
"workbox-webpack-plugin": "^5.1.3",
"workbox-window": "^5.1.3"
},
"dependencies": {},
"dependencies": {
"paco-sako-server": "git+https://jessemcdonald.info/gogs/nybble/paco_sako_server"
},
"optionalDependencies": {
"paco-sako-server": "git+https://jessemcdonald.info/gogs/nybble/paco_sako_server"
},