mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
23 lines
386 B
JavaScript
23 lines
386 B
JavaScript
"use strict";
|
|
|
|
/**
|
|
* A reference to the global object
|
|
*
|
|
* @type {object} globalObject
|
|
*/
|
|
var globalObject;
|
|
|
|
/* istanbul ignore else */
|
|
if (typeof global !== "undefined") {
|
|
// Node
|
|
globalObject = global;
|
|
} else if (typeof window !== "undefined") {
|
|
// Browser
|
|
globalObject = window;
|
|
} else {
|
|
// WebWorker
|
|
globalObject = self;
|
|
}
|
|
|
|
module.exports = globalObject;
|