diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-22 20:20:47 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-23 12:56:33 +0800 |
commit | 911f25e922d47e12c07cc5285d849d2dea10e44e (patch) | |
tree | f144c0cb491481d6d8067c59fe4939fbed07a515 /src | |
parent | df530732d4b3f1469d26dd098b5166fa7c7d9e57 (diff) |
fix: typo
Diffstat (limited to 'src')
-rw-r--r-- | src/dumbymap.mjs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 1db8437..9665c9c 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -267,8 +267,6 @@ export const generateMaps = async (container, callback) => { | |||
267 | const placeholder = htmlHolder.querySelector(`[data-placeholder="${target.id}"]`) | 267 | const placeholder = htmlHolder.querySelector(`[data-placeholder="${target.id}"]`) |
268 | if (!placeholder) throw Error(`Cannot fine placeholder for map "${target.id}"`) | 268 | if (!placeholder) throw Error(`Cannot fine placeholder for map "${target.id}"`) |
269 | 269 | ||
270 | .catch(afterAnimation) | ||
271 | |||
272 | // Consider animation may fail, write callback | 270 | // Consider animation may fail, write callback |
273 | const afterAnimation = () => { | 271 | const afterAnimation = () => { |
274 | placeholder.parentElement.replaceChild(target, placeholder) | 272 | placeholder.parentElement.replaceChild(target, placeholder) |