diff --git a/src/bundle/Resources/public/js/scripts/core/storage.js b/src/bundle/Resources/public/js/scripts/core/storage.js index e04448bdfd..f13fd8652a 100644 --- a/src/bundle/Resources/public/js/scripts/core/storage.js +++ b/src/bundle/Resources/public/js/scripts/core/storage.js @@ -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); + } + }); } } }