diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-08 20:55:38 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-08 20:55:38 +0800 |
commit | b04454d0f7c88ebb8afafc14237d95d6d7fd4040 (patch) | |
tree | 89224ea70e3d610141fc670551139c5b36c5c9d7 /addon/index.js | |
parent | fc2a1da82934600ee085f1289ae3c6a3107db312 (diff) | |
parent | 2eff07879f112572c3fccaa902b10447d04c2045 (diff) |
Merge branch addon
Diffstat (limited to 'addon/index.js')
-rw-r--r-- | addon/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addon/index.js b/addon/index.js index 47d9853..fcc0cc7 100644 --- a/addon/index.js +++ b/addon/index.js | |||
@@ -21,6 +21,7 @@ const contentSelectors = { | |||
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 | 'www.openstreetmap.org': '.content-body', |
24 | 'markdown-it.github.io': '.result-html', | ||
24 | } | 25 | } |
25 | const contentSelector = contentSelectors[url.host] | 26 | const contentSelector = contentSelectors[url.host] |
26 | 27 | ||
@@ -31,7 +32,7 @@ const simpleRender = globalThis.renderWith(config => ({ | |||
31 | XYZ: 'https://tile.openstreetmap.jp/styles/osm-bright/512/{z}/{x}/{y}.png', | 32 | XYZ: 'https://tile.openstreetmap.jp/styles/osm-bright/512/{z}/{x}/{y}.png', |
32 | ...config, | 33 | ...config, |
33 | aliases: { | 34 | aliases: { |
34 | use: globalThis.mapclayRenderer, | 35 | use: globalThis.mapclayRenderers, |
35 | ...(config.aliases ?? {}), | 36 | ...(config.aliases ?? {}), |
36 | }, | 37 | }, |
37 | })) | 38 | })) |