HiEventsDev / Hi.Events

Open-source event management and ticket selling platform 🎟️
https://hi.events
GNU Affero General Public License v3.0
886 stars 75 forks source link

🐛 Widget JS doesn't details domain correctly #59

Closed elronalds closed 2 months ago

elronalds commented 2 months ago

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.

daveearley commented 2 months ago

Thanks for reporting @elronalds. Can you check if this is fixed on the latest release?