Search code examples
node-webkitnw.js

Create a NW.js without a window


Is it possible to create a NW.js app (node), that don't have a window entry point?

I want to use NW.js, because I want to create windows, but not at the entry point. The app should work in the background, and open a window, at specific time.


Solution

  • Just set show:false in the manifest file, later on you can open new windows and close them.

    As for window entry point you can always set a blank page or a single javascript file to be executed at start

    http://docs.nwjs.io/en/latest/References/Manifest%20Format/#main

    http://docs.nwjs.io/en/latest/References/Manifest%20Format/#show