Search code examples
javascriptnw.jsnwjs

wnsow.setResizable not working in NWjs


window.setResizable(false) is not working in NWjs. window.enterFulscreen() is also giving undefined by NWjs inspector.

I am on windows10 64 bit pc, having latest NWjs setup.

<script type="text/javascript">
    // Create a new window and get it
    // Open URL with default browser.

    window.enterFullscreen()
    // nw.Shell.openExternal('https://github.com/nwjs/nw.js');
     // window.setResizable(false);
</script>

Do I need to import some module and how? Thanks


Solution

  • I got it. I forgot to var win = nw.Window.get(); Thanks