@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/dist/editorial.mount.js +3 -3
- package/dist/link-injections.js +1 -1
- package/dist/mount.js +3 -3
- package/package.json +1 -1
- package/src/lib/injection.ts +3 -2
package/package.json
CHANGED
package/src/lib/injection.ts
CHANGED
|
@@ -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
|
}
|