From c04eff2711d690087d2306e318e03bfcebece5a1 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 8 Nov 2024 17:40:23 +0800 Subject: fix: redeclaration, use IIFE to load modules * put bundled scripts into scripts/, this make gitignore easier --- addon/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addon/index.js') 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 = { 'www.ptt.cc': '#main-content', 'prosemirror.net': '.ProseMirror', 'www.openstreetmap.org': '.content-body', + 'markdown-it.github.io': '.result-html', } const contentSelector = contentSelectors[url.host] @@ -31,7 +32,7 @@ const simpleRender = globalThis.renderWith(config => ({ XYZ: 'https://tile.openstreetmap.jp/styles/osm-bright/512/{z}/{x}/{y}.png', ...config, aliases: { - use: globalThis.mapclayRenderer, + use: globalThis.mapclayRenderers, ...(config.aliases ?? {}), }, })) -- cgit v1.2.3-70-g09d2