@playpilot/tpi 8.29.8 → 8.29.9
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/dist/editorial.mount.js +7 -7
- package/dist/link-injections.js +1 -1
- package/dist/mount.js +5 -5
- package/package.json +1 -1
- package/src/lib/injection.ts +1 -1
package/package.json
CHANGED
package/src/lib/injection.ts
CHANGED
|
@@ -191,7 +191,7 @@ export function injectLinksInDocument(elements: HTMLElement[], injections: LinkI
|
|
|
191
191
|
|
|
192
192
|
const matchingElement = document.querySelector(`[${keyDataAttribute}="${injection.key}"]`)
|
|
193
193
|
const failed = isValidPlaylinkType(injection) && !injection.inactive && !injection.removed && !injection.after_article && !matchingElement
|
|
194
|
-
const containsSentence =
|
|
194
|
+
const containsSentence = fullText.includes(cleanPhrase(injection.sentence))
|
|
195
195
|
const failedMessage =
|
|
196
196
|
!failed ? '' :
|
|
197
197
|
failedMessages[injection.key] ||
|