aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-11-03 20:30:22 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-03 20:30:22 +0800
commit15c85d991530c6eec92597c47012452649b1a503 (patch)
treec56817862ef03abdd25250148d61c75a5fa34d30
parent68c34dfd8acd91bbd3d519e4ee660e4c2deef6a6 (diff)
fix: classname for GeoLink from text
-rw-r--r--src/dumbyUtils.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbyUtils.mjs b/src/dumbyUtils.mjs
index 8110e82..975833b 100644
--- a/src/dumbyUtils.mjs
+++ b/src/dumbyUtils.mjs
@@ -144,7 +144,7 @@ export const addGeoSchemeByText = async (node) => {
144 144
145 // Return anchor element with Geo Scheme 145 // Return anchor element with Geo Scheme
146 const a = document.createElement('a') 146 const a = document.createElement('a')
147 a.className = 'not-geolink from-geocoding' 147 a.className = 'not-geolink from-text'
148 a.href = `geo:0,0?xy=${x},${y}` 148 a.href = `geo:0,0?xy=${x},${y}`
149 a.textContent = match.at(0) 149 a.textContent = match.at(0)
150 return a 150 return a