On windowed Node environments such as NW.js and Electron the current CommonJS export factory invocation doesn't pass on the required JQuery and Cookies global references. This PR allows a NW.js or Electron app to import/require the module instead of including it on the app html if the required global objects are available.
On windowed Node environments such as NW.js and Electron the current CommonJS export factory invocation doesn't pass on the required
JQuery
andCookies
global references. This PR allows a NW.js or Electron app toimport
/require
the module instead of including it on the app html if the required global objects are available.