Fossil SCM

The althttpd webserver blocks the "/-50" part of the URL. So it has to be a query parameter.

drh 2020-12-23 16:11 chatroom-dev
Commit 3d6267edadb1071036d55aba7c7c3693d39a4a5cf4e52ce39ad3100ba8e8fae7
1 file changed +1 -1
+1 -1
--- src/chat.js
+++ src/chat.js
@@ -230,11 +230,11 @@
230230
}
231231
}
232232
async function poll(){
233233
if(poll.running) return;
234234
poll.running = true;
235
- fetch("chat-poll/" + mxMsg)
235
+ fetch("chat-poll?name=" + mxMsg)
236236
.then(x=>x.json())
237237
.then(y=>newcontent(y))
238238
.catch(e=>console.error(e))
239239
.finally(()=>poll.running=false)
240240
}
241241
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button