Open
Description
======== TEMPLATE BUG FORM ========
NWJS Version : nwjs-sdk-v0.31.3
Operating System : Linux/Windows
Expected behavior
Could load and execute the compiled binary after devtools is open
Actual behavior
fail to Load and execute the compiled binary after devtools is open. When click the button, the compiled binary isn't executed.
How to reproduce
- create a simple app
- compile the JS source code
- launch the app with nwjs and open the devtools
- click 'Test' button and check the console log in Devtools
Example:
package.json:
{
"name":"test",
"main":"index.html"
}
index.html:
<script>
function test() {
nw.Window.get().evalNWBin(null, 'test.bin');
console.log("test2");
}
test()
</script>
<button onclick="test()">Test</button>
test.js:
console.log('test1');
If click 'Test' button firstly, and then open the devtools, test1
only outputs normally.