Update webxdc.js
Co-authored-by: bjoern <r10s@b44t.com>
This commit is contained in:
parent
a0cd14a0c0
commit
841f7f9691
|
@ -5,7 +5,7 @@ window.webxdc = (() => {
|
||||||
window.addEventListener('storage', (event) => {
|
window.addEventListener('storage', (event) => {
|
||||||
if (event.key == null) {
|
if (event.key == null) {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
} else if (event.key == updatesKey) {
|
} else if (event.key === updatesKey) {
|
||||||
var updates = JSON.parse(event.newValue);
|
var updates = JSON.parse(event.newValue);
|
||||||
updateListener(updates[updates.length-1]);
|
updateListener(updates[updates.length-1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue