I'm creating a widget for 3rd-party sites. It correctly loads from S3 on desktop and Android, but there's an issue with iOS. The widget is not loading in both Safari and Chrome, and there are not error messages in a console. I think that there might be an error in the loading script:
<script>
;(function(document, url, apiKey) {
var link = document.createElement('link')
link.rel = 'stylesheet'
link.href = `${url}/index.css?apiKey=${apiKey}`
var head = document.getElementsByTagName('head')[0]
head.parentNode.insertBefore(link, head)
var script = document.createElement('script')
script.src = `${url}/index.js?apiKey=${apiKey}`
script.async = true
var entryScript = document.getElementsByTagName('script')[0]
entryScript.parentNode.insertBefore(script, entryScript)
})(document, 'http://localhost:8080', '31805389-c240-4d42-8ff9-2cc30f753212')
</script>
The link to a repo with the demo: https://github.com/pshepelenko/widget-demo-public