asvd / jailed

execute untrusted code with custom permissions
MIT License
1.01k stars 69 forks source link

Gets the correct address for the current script on browsers #44

Open dtracers opened 7 years ago

dtracers commented 7 years ago

The old way breaks if you load the script using html imports

Then the url is pointing at an invalid script.

dtracers commented 7 years ago

Note: I do not currently have access to IE 11 so i have not been been able to test it in a browser that does not have currentscript as a field

http://caniuse.com/#search=currentScript