mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-24 21:46:31 +01: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
|
||||
window.addEventListener('storage', (e) => {
|
||||
if (e.key === 'markdown-editor-monospace') {
|
||||
if (e.storageArea === localStorage && e.key === 'markdown-editor-monospace') {
|
||||
applyMonospace(isMonospaceEnabled(), {save: false});
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user