After trillIons of years of it working errorlessly, edits to a custom T2I tonight caused me to get this error even tho my audio plugin was written with an eventlistener for click identically to how the Perchance Audio Plugin suggested script does.

I’m not sure why the error and I think it doesn’t matter. What matters is I solved it with this: so my code now is window.addEventListener("click", function(){if(navigator.userActivation.isActive && etc etc and it no longer bugs because it checks whether the user counts as active.

Whatever fringe scenario was causing mine to bug (a programmatic click perhaps?) would I’m sure also have happened with https://perchance.org/background-audio-plugin, and since I just solved mine with this nice little line, I am suggesting navigator.userActivation.isActive for https://perchance.org/background-audio-plugin too (to preemptively not have anyone encounter this bug).

  • @wthit56
    link
    English
    22 months ago

    A little tip about Lemmy… leave an empty line between things to make sure they’re shown on different lines. This post looks nutty XD