@playpilot/tpi 6.2.2 → 6.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/routes/+page.svelte
CHANGED
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
|
|
73
73
|
window.PlayPilotLinkInjections.config = config
|
|
74
74
|
|
|
75
|
-
isUrlExcluded = !!(config?.exclude_urls_pattern && url.match(new RegExp(config.exclude_urls_pattern)))
|
|
76
|
-
if (isUrlExcluded) return
|
|
77
|
-
|
|
78
75
|
if (config?.custom_style) insertCustomStyle(config.custom_style || '')
|
|
79
76
|
if (config?.explore_navigation_selector) insertExploreIntoNavigation()
|
|
80
77
|
|
|
78
|
+
isUrlExcluded = !!(config?.exclude_urls_pattern && url.match(new RegExp(config.exclude_urls_pattern)))
|
|
79
|
+
if (isUrlExcluded) return
|
|
80
|
+
|
|
81
81
|
setElements(config?.html_selector || '', config?.exclude_elements_selector || '')
|
|
82
82
|
} catch(error) {
|
|
83
83
|
// We return if the config did not get fetched properly, as we can't determine what should and should
|