Skip to content

Commit

Permalink
added check
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Dec 6, 2024
1 parent c589b15 commit 84679a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bundle/Resources/public/js/scripts/core/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@

init() {
if (this.eventName) {
global.addEventListener('storage', (event) => this.fireStorageChangeEvent(event.newValue));
global.addEventListener('storage', (event) => {
if (event.key === this.key) {
this.fireStorageChangeEvent(event.newValue);
}
});
}
}
}
Expand Down

0 comments on commit 84679a0

Please sign in to comment.