aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dumbymap.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs
index 922f413..d8349c6 100644
--- a/src/dumbymap.mjs
+++ b/src/dumbymap.mjs
@@ -374,7 +374,7 @@ export const generateMaps = async (container) => {
374 if (layout === 'overlay') { 374 if (layout === 'overlay') {
375 let x = 0; 375 let x = 0;
376 let y = 0; 376 let y = 0;
377 htmlHolder.blocks.forEach(block =>{ 377 htmlHolder.blocks.forEach(block => {
378 // Add draggable instance 378 // Add draggable instance
379 block.draggableInstance = new PlainDraggable(block, { 379 block.draggableInstance = new PlainDraggable(block, {
380 handle: block.draggablePart, 380 handle: block.draggablePart,
@@ -395,7 +395,7 @@ export const generateMaps = async (container) => {
395 block.removeAttribute('style') 395 block.removeAttribute('style')
396 try { 396 try {
397 block.draggableInstance.remove() 397 block.draggableInstance.remove()
398 } catch (_) { } 398 } catch (_) { null }
399 }) 399 })
400 } 400 }
401 }); 401 });