<
scottg...@gmail.com> writes:
> Now that the #36 fix is in, I'm curious about how I would do this
> properly.
At least in my testing the fix didn't work. Will re-open the issue and
follow up on this.
> Have tried the following code window api code in app.js which is defined as
> node-main in the manifest.
>
> <code>
> var gui = require('nw.gui');
> var newWindow = gui.Window.get(
>
> window.open('
http://google.ca');
>
> )
> </code>
>
> This seems to throw an error (the nw ui just goes grey). Is this a bug or
> am I doing something wrong?
Even after #36 works, 'nw.gui' and windows objects cannot be opened
here (which should be another item on our TODO).
A callback function should be defined here and then referred from
WebKit context (e.g. from your index.html)
--
Roger WANG Intel Open Source Technology Center