We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea39d24 commit 315242bCopy full SHA for 315242b
1 file changed
src/content-script/index.jsx
@@ -278,17 +278,19 @@ async function prepareForStaticCard() {
278
const matches = location.hostname.match(siteRegex)
279
if (matches) {
280
const siteName = matches[0]
281
+
282
+ if (
283
+ userConfig.siteAdapters.includes(siteName) &&
284
+ !userConfig.activeSiteAdapters.includes(siteName)
285
+ )
286
+ return
287
288
if (siteName in siteConfig) {
289
const siteAction = siteConfig[siteName].action
290
if (siteAction && siteAction.init) {
291
await siteAction.init(location.hostname, userConfig, getInput, mountComponent)
292
}
293
- if (
- userConfig.siteAdapters.includes(siteName) &&
- !userConfig.activeSiteAdapters.includes(siteName)
- )
- return
294
295
mountComponent(siteConfig[siteName], userConfig)
296
0 commit comments