I added a window property _isNodeWebkit that only gets set when running in nwjs window. This seemed like the least hacky way to detect node. I then disable the window.devicemotion event for this case. The other check didn't work I think because we are checking from the frontend.
I added a window property
_isNodeWebkit
that only gets set when running in nwjs window. This seemed like the least hacky way to detect node. I then disable thewindow.devicemotion
event for this case. The other check didn't work I think because we are checking from the frontend.