-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why can't this script be loaded dynamically using the following methods? #3
Comments
I'm also trying to get the latest |
For anyone who comes across this too, I was able to put the latest Twitch JS library (as of 08/16/2024)
|
I also figured out how to dynamically load the script using
Upon using a little Github Copilot to break that down, the script detects After figuring this out, it was a matter if finding where the script's So in the
So there is it. Dynamically loading the Twitch Embed JS library with no source modifications. |
I'm battling with this now, trying to get Twitch's
https://embed.twitch.tv/embed/v1.js
to load dynamically.I've tried all of the following and none of them will add
Twitch
towindow
similar to how it does if you just add the following to the<body>
element:I tried doing the following:
The above will load the script in the browser's Sources tab, but it will not add
Twitch
to the globalwindow
. Why is that? Just curious if you could explain.The text was updated successfully, but these errors were encountered: