HiEventsDev / hi.events

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

🐛 Widget JS doesn't details domain correctly #59

Closed elronalds closed 1 week ago

elronalds commented 1 week 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 1 week ago

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