@playpilot/tpi 8.29.3 → 8.29.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.29.3",
3
+ "version": "8.29.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -356,13 +356,14 @@ function addLinkInjectionEventListeners(injections: LinkInjection[]): void {
356
356
  export function clearLinkInjections(): void {
357
357
  const elements = document.querySelectorAll(keySelector)
358
358
 
359
- if (!elements.length) return
360
-
361
359
  elements.forEach((element) => clearLinkInjection(element.getAttribute(keyDataAttribute) || ''))
362
360
 
363
361
  clearAfterArticlePlaylinks()
364
362
  clearInTextDisclaimer()
365
363
  clearInTextWidgets()
364
+
365
+ if (!elements.length) return
366
+
366
367
  destroyAllModals(false)
367
368
  destroyLinkPopover(false)
368
369
  }