fix in storage event listener

master
adbenitez 2022-01-08 00:38:14 -05:00
parent 5567535e59
commit 15ca74b200
1 changed files with 2 additions and 1 deletions

View File

@ -7,8 +7,9 @@ window.webxdc = (() => {
window.location.reload();
} else if (event.key === updatesKey) {
var updates = JSON.parse(event.newValue);
var update = updates[updates.length-1];
console.log("[Webxdc] " + JSON.stringify(update));
updateListener(updates[updates.length-1]);
updateListener(update);
}
});