asvd / jailed

execute untrusted code with custom permissions
MIT License
1k stars 73 forks source link

Load external js file into plugin? #23

Open gotdan opened 8 years ago

gotdan commented 8 years ago

Is there a way to load an external javascript file into the plugin's context (either from the main page or from the plugin)? For example, if the plugin code depends on a date manipulation library, is there a function to load this as an external js file, or does it have to be baked into the plugin.js file?

asvd commented 8 years ago

Currently there is no such an opportunity available out of the box, so I would suggest adding the additional routines into the plugin code.

I will probably consider adding this feature in the future.