javascript - How to open URL in the same window in Node-Webkit? -


var win = gui.window.open('https://github.com', {   position: 'center',   width: 901,   height: 127 }); 

this open url in new window, how open (redirect) url in same main window?

you can use normal html window functions.

window.location.href = 'http://example.com';

just sure include

node-remote: 'http://example.com'

in package.json if plan use default nodewebkit functionality when page loaded.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -