Update webxdc.js

Co-authored-by: bjoern <r10s@b44t.com>
master
Asiel Díaz Benítez 2022-01-06 18:59:55 -05:00 committed by GitHub
parent a0cd14a0c0
commit 841f7f9691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ window.webxdc = (() => {
window.addEventListener('storage', (event) => {
if (event.key == null) {
window.location.reload();
} else if (event.key == updatesKey) {
} else if (event.key === updatesKey) {
var updates = JSON.parse(event.newValue);
updateListener(updates[updates.length-1]);
}