diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-08 12:49:35 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-08 12:49:39 +0800 |
commit | 20e36b56b27959a78ea6fd0d99cd89363299f00d (patch) | |
tree | c73b370b2d2648ec9423c7f6f99c0b0268c3e69c | |
parent | b411d955f7bc2fc386c47d4124377860b1819ed4 (diff) |
fix: typo in 283b2c9
-rw-r--r-- | src/editor.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.mjs b/src/editor.mjs index f0b4af0..6279f62 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -424,7 +424,7 @@ const completeForCodeBlock = change => { | |||
424 | const menuForEditor = (event, menu) => { | 424 | const menuForEditor = (event, menu) => { |
425 | event.preventDefault() | 425 | event.preventDefault() |
426 | 426 | ||
427 | if (document.getSelection.type === 'Range' && cm.getSelection() && refLinks.length > 0) { | 427 | if (document.getSelection().type === 'Range' && cm.getSelection() && refLinks.length > 0) { |
428 | menu.replaceChildren() | 428 | menu.replaceChildren() |
429 | menu.appendChild(menuItem.addRefLink(cm, refLinks)) | 429 | menu.appendChild(menuItem.addRefLink(cm, refLinks)) |
430 | } | 430 | } |