messagesoverlay - Handle changes introduced in 2v21.104

master
Martin Boonk 2024-04-30 00:12:17 +02:00
parent 297283a77c
commit 6c4370d005
1 changed files with 2 additions and 1 deletions

View File

@ -579,11 +579,12 @@ const backupHandlers = function(){
LOG("Transform watch", w); LOG("Transform watch", w);
if (w) { if (w) {
w = [ w = [
w.callback, w.callback ? w.callback : w.cb, // Handle change in name of callback variable to cb in 2v21.104
w.pin, w.pin,
w w
]; ];
delete w[2].callback; delete w[2].callback;
delete w[2].cb;
delete w[2].pin; delete w[2].pin;
w[2].debounce = Math.round(w[2].debounce / 1048.576); w[2].debounce = Math.round(w[2].debounce / 1048.576);
} else { } else {