@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.29.8",
3
+ "version": "8.29.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -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 = foundInjections.find(i => i.key === injection.key)
194
+ const containsSentence = fullText.includes(cleanPhrase(injection.sentence))
195
195
  const failedMessage =
196
196
  !failed ? '' :
197
197
  failedMessages[injection.key] ||