So i'm grabbing a tweet and having it sent to my extension which then uses that in a HTML popup. I seem to be having issue with the actual loading of the tweet design, I'm using http://platform.twitter.com/widgets.js has a local file since google chrome extensions don't allow for inline scripting.
However, the widgets.js file its self makes a call which is blocked by google.
widget.js:1 Refused to load the script 'https://platform.twitter.com/js/tweet.3f0c77e9c86dd5bae672ba9948814692.js' because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:". Function.bind.test.window.__twttr.window.__twttr.widgets.window.__twttr.widgets.init.e.e @ widget.js:1 background.js:39 Uncaught (in promise) TypeError: Cannot read property 'contentDocument' of undefined at background.js:39 at
So i'm not really sure on how to go about it, is there another method I can embed tweets? I basically followed this https://ctrlq.org/code/19933-embed-tweet-with-javascript but instead of doing script sync src="https://platform.twitter.com/widgets.js"> I just downloaded the file and did script src="widget.js">