markwylde / workerbox

A secure sandbox to execute untrusted user JavaScript, in a web browser, without any risk to your own domain/site/page.
https://workerbox.net
MIT License
123 stars 3 forks source link

Make options optional in type definition #15

Closed raimohanska closed 1 year ago

raimohanska commented 1 year ago

They are in fact optional in the javascript and are omitted in the README.md example.

On a quick try though, the tests just hang without the { appendVersion: false } options, so not sure what to think about this.

markwylde commented 1 year ago

Thanks for this. I've added some tests to test for the different scenarios :)