verify e.storageArea

This commit is contained in:
silverwind committed 2025-12-17 21:06:50 +01:00
1 parent f29f63a390
commit 9f13c21543
1 file changed
+1 -1
@@ -172,7 +172,7 @@ export class ComboMarkdownEditor {
// apply setting was changed in another tab
window.addEventListener('storage', (e) => {
if (e.key === 'markdown-editor-monospace') {
if (e.storageArea === localStorage && e.key === 'markdown-editor-monospace') {
applyMonospace(isMonospaceEnabled(), {save: false});
}
});