diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-01 15:42:08 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-01 16:42:49 +0800 |
| commit | 5c55ea01e1df826bf21f33c6ef067b0c7d60d4f8 (patch) | |
| tree | 7713ae1a147023d83e4bf6f1f441e2ddf077ca75 /src | |
| parent | 3da2e8b3fbfaf273d2100d4c4657bba0be888bdc (diff) | |
style: prettier
Diffstat (limited to 'src')
| -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'); |