diff options
Diffstat (limited to 'src/editor.mjs')
-rw-r--r-- | src/editor.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/editor.mjs b/src/editor.mjs index 20bcc2a..3dc5df7 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -12,7 +12,8 @@ let dumbymap; | |||
12 | 12 | ||
13 | new MutationObserver(() => { | 13 | new MutationObserver(() => { |
14 | if ( | 14 | if ( |
15 | document.querySelector('[data-mode]').getAttribute('data-mode') === 'editing' && | 15 | document.querySelector('[data-mode]').getAttribute('data-mode') === |
16 | 'editing' && | ||
16 | HtmlContainer.getAttribute('data-layout') !== 'normal' | 17 | HtmlContainer.getAttribute('data-layout') !== 'normal' |
17 | ) { | 18 | ) { |
18 | HtmlContainer.setAttribute('data-layout', 'normal'); | 19 | HtmlContainer.setAttribute('data-layout', 'normal'); |