GT2/GT2-Android/node_modules/auth0-js/standalone.js

17 lines
525 B
JavaScript
Raw Normal View History

/*
*
* This is used to build the bundle with browserify.
*
* The bundle is used by people who doesn't use browserify.
* Those who use browserify will install with npm and require the module,
* the package.json file points to index.js.
*/
var Auth0 = require('./index');
//use amd or just throught to window object.
if (typeof global.window.define == 'function' && global.window.define.amd) {
global.window.define('auth0', function () { return Auth0; });
} else if (global.window) {
global.window.Auth0 = Auth0;
}