mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 23:16:52 +02:00
verify e.storageArea
This commit is contained in:
1 file changed
+1
-1
@@ -172,7 +172,7 @@ export class ComboMarkdownEditor {
|
|||||||
|
|
||||||
// apply setting was changed in another tab
|
// apply setting was changed in another tab
|
||||||
window.addEventListener('storage', (e) => {
|
window.addEventListener('storage', (e) => {
|
||||||
if (e.key === 'markdown-editor-monospace') {
|
if (e.storageArea === localStorage && e.key === 'markdown-editor-monospace') {
|
||||||
applyMonospace(isMonospaceEnabled(), {save: false});
|
applyMonospace(isMonospaceEnabled(), {save: false});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user