asvd / jailed

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

Lazy loading jailed does not initialise in browser #11

Open clark-pan opened 9 years ago

clark-pan commented 9 years ago

Its quite difficult to use jailed in lazy loading system like require.js or systemJS at the moment.

A couple of problems:

dgrad commented 9 years ago

Running into the exact same issues including jailed with require.js

I had to make the following changes to make it work:

ivanbacher commented 7 years ago

I was having the same issues. Using JSPM to install jailed (jspm install jailed=github:asvd/jailed@0.3.1).

Other than the solution posted by @dgrad you can also include the following in your index.html head tag: <script src="jspm_packages/github/asvd/jailed@0.3.1/lib/jailed.js"></script>

rhwilburn commented 8 months ago

I used this to get around my problems including it in Angular

<script src="https://unpkg.com/jailed@0.3.1/lib/jailed.js"></script>