Nw.js: binary protected js doesn't work when back or reload the page

Created on 19 Aug 2016  路  9Comments  路  Source: nwjs/nw.js

Hi everyone!

I have a problem with nw.Window.get().evalNWBin function, when the page loads for first time, my code works well, but when use window.history.back() or return to previous page, doesn't load again the protected binary....anyone can help me?

Thnx!!

bug triaged

Most helpful comment

i had figured out that it doesn't work then dev tools are open - once you close them - it works again

All 9 comments

I can confirm this issue.

this problem happens in LTS v0.14.7 too, nwjs-sdk-v0.14.7-win-ia32

when I rebuild the snapshot, it works well for one or two times when I reload the page, and the problem happens again

for me it also sometimes works some times not, like a lotery - the same snapshot, just restart the app, some times works sometime not

Has there been any movement on this? I can reproduce this issue

window v0.26.0 32bit and 64bit

refresh or history.back() , doesn't load again the protected binary

i had figured out that it doesn't work then dev tools are open - once you close them - it works again

@Asp3ctus THANK YOU!

I spent hours. Probably 5 or so. Debugging this. I closed Dev Tools. Reload app. SUCCESS!!!!

Crazy. This should be in

I spent hours too. This is ridiculous. There is nothing more frustrating than poking around in the dark. Distilling an app down to the most simple <html></html>, and having the most simple index.js of console.log('asdf'); document.write('plz'), and opening dev tools, running nw.Window.get().evalNWBin( null, 'bins/index1234.bin' ), and if you change the file name, it fails, so you know it's opening hte bin, BUT NOTHING HAPPENS.

Put a comment saying DEV TOOLS CANNOT BE OPEN, seriously.

The issue with the open DevTools seems to be fixed. I tried it with NW.js 0.34.5 and 0.35.2 on macOS and it worked.

Was this page helpful?
0 / 5 - 0 ratings