jailed
jailed copied to clipboard
Write code without application.remote
How can I write clean code without 'application.remote.'?
I don't want write like that:
var code = "application.remote.alert('Hello from the plugin!');";
I need this clean code:
var code = "alert('Hello from the plugin!');";
So can i write wihtout 'application.remote.' or can i add it in runtime?
interested in this one too
I just use this one quick hack... just add this to the plugin code
for (const props in application.remote) {
eval(`var ${props} = application.remote.${props}`)
}