breach / thrust

Chromium-based cross-platform / cross-language application framework
MIT License
2.77k stars 121 forks source link

call js function from root_url javascript #258

Open r1si opened 9 years ago

r1si commented 9 years ago

hi guys, I use node js plugin , and I write this code:

function test_me(){ console.log("work"); }

webview(function(err, api) { var win = api.window({ root_url: 'file:///Users/USER/Documents/LOCAL/SVILUPPO_WEB/test.html' }); win.show(); win.maximize(); win.on("closed",function(){ process.kill(); }); });

and in my local pc inside test.html

I'm trying to invocate remote function with parent.function() but don't work ... how can I do?