Greetings. I’ve scoured through discussions to try and determine the issue but cannot nail it down. I’ll try to include all relevant information from what I’ve seen posted.
I have a basic extension that when loaded sends a request for json data then fills in the elements of the page with that data. I’m doing the hosted test and in the browser logs, it shows request being fulfilled without issue however in FF and Chrome after the request is made the extension goes blank. Obviously right before the request is made the html is visible but afterwards it goes blank. Tested on Edge browser and it works just fine.
Also, I’ve loaded the URL of the extension https://[ID].ext-twitch.tv/[ID]/0.6/[MD5]/video_component.html?anchor=component&language=en&locale=en-US&mode=viewer&state=hosted_test&platform=web
which of course works fine and no errors in browser console.
- Local test was fine (standalone and developer rig).
- Only works on Edge, not FF or Chrome.
- Disabled all extensions from Chrome.
- All files are included with relative paths.
There is one error in Chrome Failed to execute 'postMessage' on 'DOMWindow': The target origin provided
and I’ve seen replies that this is not relevant.
FWIW this is the head of the html with script loading.
<script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/viewer.min.js"></script>
Any insight into why this is happening would be great. Been banging my head on this for a couple of hours.
Cheers.
EDIT: All of a sudden FF is working. Nothing has been changed since original post. Chrome still not working though.