Skip to content

Commit 16dc562

Browse files
committed
Ignore unrelated storage events
1 parent 987c504 commit 16dc562

File tree

2 files changed

+7
-0
lines changed
  • ts/WoltLabSuite/Core/Component/Quote
  • wcfsetup/install/files/js/WoltLabSuite/Core/Component/Quote

2 files changed

+7
-0
lines changed

ts/WoltLabSuite/Core/Component/Quote/Storage.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ function saveStorage(data: StorageData) {
284284
}
285285

286286
window.addEventListener("storage", (event) => {
287+
if (event.key !== STORAGE_KEY) {
288+
return;
289+
}
290+
287291
refreshQuoteLists();
288292

289293
const oldValue = parseJson(event.oldValue);

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Quote/Storage.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)