github-pages-deploy-action/node_modules/@sinonjs/commons/lib/global.js
2020-01-28 00:08:03 -05: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;