Set file name that appears in the console when an error occurs in a script
I have a script tag that is being loaded as a data uri, ie
<script type="text/javascript" src=[some data uri]></script>
I would like to be able to define something regarding my script such that
when an error occurs on my page, rather than that error appearing in the
console with a crazy data uri as the file name, it appears with a file
name that I define.
Ideally the correct file name would also appear when you console.log.
Is this possible? Thanks!
No comments:
Post a Comment