When using the widget script it seems to fail consistently on the following code:
const scriptURL = document.currentScript.src;
The document.currentScript will return null sometimes and then the widget won't load. I believe this is related to the callback but it doesn't always have a null value.
When using the widget script it seems to fail consistently on the following code:
const scriptURL = document.currentScript.src;
The
document.currentScript
will return null sometimes and then the widget won't load. I believe this is related to the callback but it doesn't always have a null value.