CodeNewbie Community

Discussion on: Need help with Chrome extension learning project

Collapse
terabytetiger profile image
Tyler V. (he/him)

I played around with this a bit and eventually realized that the issue isn't with your code - it's that Twitter is blocking the image URL from being loaded!

You can tell it took a while from the "156" times the error showed up in my console πŸ˜…

Dev Console showing 156 errors of refused to load URL

Collapse
kasi21 profile image
Kasi21 Author

Ah, thanks so much for looking at this Tyler! πŸ¦Έβ€β™‚οΈ

Is that something Twitter is doing on purpose? Is there an alternative way to load the image URL so that it can be used as the background?

Collapse
kasi21 profile image
Kasi21 Author

Hi Tyler,

I managed to sort it out!

Thanks for your help - I wouldn't have been able to do it if you hadn't pointed me in the right direction regarding the error code! I posted in a couple of other forums, and I updated them with the answer and saying that I got it with help from the CodeNewbie Forum - so hopefully, that drives some traffic this way!

If anyone else is interested, basically, I had to load the background image locally by adapting the code from: github.com/GoogleChrome/chrome-ext...

Cheers

Thread Thread
terabytetiger profile image
Tyler V. (he/him)

Glad I was able to get you in the right direction!

That's a neat way to resolve the error - glad you shared it so I can have it as a resource if I ever need it! πŸ₯³