Fossil SCM
The althttpd webserver blocks the "/-50" part of the URL. So it has to be a query parameter.
Commit
3d6267edadb1071036d55aba7c7c3693d39a4a5cf4e52ce39ad3100ba8e8fae7
Parent
c017a7b4d072fb6…
1 file changed
+1
-1
+1
-1
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -230,11 +230,11 @@ | ||
| 230 | 230 | } |
| 231 | 231 | } |
| 232 | 232 | async function poll(){ |
| 233 | 233 | if(poll.running) return; |
| 234 | 234 | poll.running = true; |
| 235 | - fetch("chat-poll/" + mxMsg) | |
| 235 | + fetch("chat-poll?name=" + mxMsg) | |
| 236 | 236 | .then(x=>x.json()) |
| 237 | 237 | .then(y=>newcontent(y)) |
| 238 | 238 | .catch(e=>console.error(e)) |
| 239 | 239 | .finally(()=>poll.running=false) |
| 240 | 240 | } |
| 241 | 241 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -230,11 +230,11 @@ | |
| 230 | } |
| 231 | } |
| 232 | async function poll(){ |
| 233 | if(poll.running) return; |
| 234 | poll.running = true; |
| 235 | fetch("chat-poll/" + mxMsg) |
| 236 | .then(x=>x.json()) |
| 237 | .then(y=>newcontent(y)) |
| 238 | .catch(e=>console.error(e)) |
| 239 | .finally(()=>poll.running=false) |
| 240 | } |
| 241 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -230,11 +230,11 @@ | |
| 230 | } |
| 231 | } |
| 232 | async function poll(){ |
| 233 | if(poll.running) return; |
| 234 | poll.running = true; |
| 235 | fetch("chat-poll?name=" + mxMsg) |
| 236 | .then(x=>x.json()) |
| 237 | .then(y=>newcontent(y)) |
| 238 | .catch(e=>console.error(e)) |
| 239 | .finally(()=>poll.running=false) |
| 240 | } |
| 241 |