github-pages-deploy-action/node_modules/@sinonjs/commons/lib/global.js
2020-03-31 08:57:48 -04:00

17 lines
307 B
JavaScript

"use strict";
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;