mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-07 12:33:36 +02:00
verify e.storageArea
This commit is contained in:
parent
f29f63a390
commit
9f13c21543
@ -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});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user