diff options
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 | })) |