You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: Annotate/Highlight toolbar appears Actual: Toolbar does not appear. Browser console shows an error:
html.ts:135 Uncaught TypeError: n.setStart is not a function
at Bn.toRange (text-range.ts:292:11)
at Bn.trimmedRange (text-range.ts:325:49)
at Zi.getAnnotatableRange (html.ts:130:24)
at dr._onSelection (guest.ts:818:48)
at guest.ts:289:14
at selection-observer.ts:30:9
On this page the Range global has been overwritten with a different object which doesn't have the expected API. The problem is caused by the script https://cdn.jsdelivr.net/npm/[email protected]/tsparticles.confetti.bundle.min.js. Using Chrome devtools to block this script when the page loads prevents the problem from occurring. The issue also occurs on the home page of the tsParticles library - https://particles.js.org.
The text was updated successfully, but these errors were encountered:
I filed an upstream issue to see if the tsParticles library can avoid overwriting the DOM Range object. In the meantime we might need to use some technique other than new Range to construct ranges to prevent this. Enforcing this would require a lint check. We have a similar existing issue with sites that have broken URL polyfills on them.
Steps to reproduce:
Expected: Annotate/Highlight toolbar appears
Actual: Toolbar does not appear. Browser console shows an error:
On this page the
Range
global has been overwritten with a different object which doesn't have the expected API. The problem is caused by the script https://cdn.jsdelivr.net/npm/[email protected]/tsparticles.confetti.bundle.min.js. Using Chrome devtools to block this script when the page loads prevents the problem from occurring. The issue also occurs on the home page of the tsParticles library - https://particles.js.org.The text was updated successfully, but these errors were encountered: