vue-email-editor icon indicating copy to clipboard operation
vue-email-editor copied to clipboard

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

Open markhorsman opened this issue 2 years ago • 0 comments

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?

markhorsman avatar Jul 04 '23 13:07 markhorsman