diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-03 20:30:22 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-03 20:30:22 +0800 |
commit | 15c85d991530c6eec92597c47012452649b1a503 (patch) | |
tree | c56817862ef03abdd25250148d61c75a5fa34d30 | |
parent | 68c34dfd8acd91bbd3d519e4ee660e4c2deef6a6 (diff) |
fix: classname for GeoLink from text
-rw-r--r-- | src/dumbyUtils.mjs | 2 |
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 |