aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/css/dumbymap.css1
-rw-r--r--src/dumbymap.mjs2
-rw-r--r--src/editor.mjs5
3 files changed, 2 insertions, 6 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css
index ab09863..2da2376 100644
--- a/src/css/dumbymap.css
+++ b/src/css/dumbymap.css
@@ -144,7 +144,6 @@
144 box-sizing: content-box; 144 box-sizing: content-box;
145 position: absolute; 145 position: absolute;
146 width: fit-content; 146 width: fit-content;
147 height: fill-available;
148 max-height: 50vh; 147 max-height: 50vh;
149 overflow: scroll; 148 overflow: scroll;
150 border: solid gray; 149 border: solid gray;
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs
index 4d4628d..ba0ef0c 100644
--- a/src/dumbymap.mjs
+++ b/src/dumbymap.mjs
@@ -391,7 +391,7 @@ export const generateMaps = async (container) => {
391 block.style.transform = 'none' 391 block.style.transform = 'none'
392 try { 392 try {
393 block.draggableInstance?.remove() 393 block.draggableInstance?.remove()
394 } catch (err) { } 394 } catch (_) { }
395 }) 395 })
396 } 396 }
397 }); 397 });
diff --git a/src/editor.mjs b/src/editor.mjs
index 67f0d6a..14daab4 100644
--- a/src/editor.mjs
+++ b/src/editor.mjs
@@ -34,7 +34,6 @@ const getContentFromHash = (hash) => {
34} 34}
35 35
36const initialState = getStateFromHash(window.location.hash) 36const initialState = getStateFromHash(window.location.hash)
37const queryParams = new URL(window.location).searchParams
38window.location.hash = '' 37window.location.hash = ''
39const contentFromHash = initialState.content 38const contentFromHash = initialState.content
40const lastContent = localStorage.getItem('editorContent') 39const lastContent = localStorage.getItem('editorContent')
@@ -143,11 +142,9 @@ const debounceForMap = (() => {
143 let timer = null; 142 let timer = null;
144 143
145 return function(...args) { 144 return function(...args) {
146 let context = this;
147
148 clearTimeout(timer); 145 clearTimeout(timer);
149 timer = setTimeout(() => { 146 timer = setTimeout(() => {
150 generateMaps.apply(context, args) 147 generateMaps.apply(this, args)
151 }, 1000); 148 }, 1000);
152 } 149 }
153})() 150})()