I'm using the solution found here (How to change url on Chromium kiosk mode via ssh) using node.js that is called from a bash script and it works great to change the current URL in chrome. The problem is that the node.js script hangs after it does it's thing. In the script, they say use promise-ws to exit the program then use process.exit().
When I use process.exit() without the promise, the script closes too quickly before passing the argument to chrome. I am new to js and need some help coding the promise.
Thanks for any suggestions.