Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Failed to construct 'URL': Invalid URL #91

Open
markhorsman opened this issue Jul 4, 2023 · 0 comments
Open

Uncaught TypeError: Failed to construct 'URL': Invalid URL #91

markhorsman opened this issue Jul 4, 2023 · 0 comments

Comments

@markhorsman
Copy link

For some reason our implementation of the editor only works on localhost.
In production or test domain we get an error in https://editor.unlayer.com/embed.js?2 on the following line:

n = (i = new URL(document.currentScript.src)).href.substring(0, i.href.lastIndexOf("/") + 1),
I think document.currentScript is null for some reason.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant