[Fix] hot fix for a breaks tooting bug

This commit is contained in:
molan-git 2023-01-19 18:26:57 +01:00 committed by GitHub
parent 7eabc0976b
commit 6be0d7e1cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ WorkerScript.onMessage = function(msg) {
// this is not elegant. it's max_id and ids from MyList // this is not elegant. it's max_id and ids from MyList
// we should always get max_id on append // we should always get max_id on append
if (msg.mode === "append") { if (msg.mode === "append" && msg.params[0]) {
if ( msg.params[0]["name"] === "max_id" ) { if ( msg.params[0]["name"] === "max_id" ) {
max_id = msg.params[0]["data"] max_id = msg.params[0]["data"]
} }