Base.js
function () {
        let usingNode = false;
        if (typeof process === 'object') {
            if (typeof process.versions === 'object') {
                if (typeof process.versions.node !== 'undefined') {
                    usingNode = true;
                }
            }
        }

        return usingNode;
    }
function () {
        let usingNode = false;
        if (typeof process === 'object') {
            if (typeof process.versions === 'object') {
                if (typeof process.versions.node !== 'undefined') {
                    usingNode = true;
                }
            }
        }

        return usingNode;
    }
function ( ) { let usingNode = false ; if ( typeof process === 'object' ) { if ( typeof process . versions === 'object' ) { if ( typeof process . versions . node !== 'undefined' ) { usingNode = true ; } } } return usingNode ; }
Find out if you are using node or the browser.  This approach should work
for both nwjs and node and the browser.
Find out if you are using node or the browser . This approach should work for both nwjs and node and the browser .