diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-05 11:20:35 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-05 11:20:51 +0800 |
commit | 43b39e52c2a84c3b1c0c26564ae1e65816a4e4fe (patch) | |
tree | 64f994ee1e0aed93239825dc29698fea64712b40 | |
parent | c4c8903b148ce75dd2470203e9faf93e3a42b15b (diff) |
feat: add OSM for diary page
-rw-r--r-- | addon/index.js | 1 | ||||
-rw-r--r-- | addon/manifest.json | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/addon/index.js b/addon/index.js index 2ce3423..47d9853 100644 --- a/addon/index.js +++ b/addon/index.js | |||
@@ -20,6 +20,7 @@ const contentSelectors = { | |||
20 | 'hackmd.io': '#doc', | 20 | 'hackmd.io': '#doc', |
21 | 'www.ptt.cc': '#main-content', | 21 | 'www.ptt.cc': '#main-content', |
22 | 'prosemirror.net': '.ProseMirror', | 22 | 'prosemirror.net': '.ProseMirror', |
23 | 'www.openstreetmap.org': '.content-body', | ||
23 | } | 24 | } |
24 | const contentSelector = contentSelectors[url.host] | 25 | const contentSelector = contentSelectors[url.host] |
25 | 26 | ||
diff --git a/addon/manifest.json b/addon/manifest.json index 92baf30..1b89ccf 100644 --- a/addon/manifest.json +++ b/addon/manifest.json | |||
@@ -21,7 +21,8 @@ | |||
21 | "*://developer.mozilla.org/*", | 21 | "*://developer.mozilla.org/*", |
22 | "*://hackmd.io/*", | 22 | "*://hackmd.io/*", |
23 | "*://*.ptt.cc/*", | 23 | "*://*.ptt.cc/*", |
24 | "https://prosemirror.net/examples/*" | 24 | "https://prosemirror.net/examples/*", |
25 | "https://www.openstreetmap.org/*" | ||
25 | ], | 26 | ], |
26 | "js": [ | 27 | "js": [ |
27 | "renderers/leaflet.js", | 28 | "renderers/leaflet.js", |