source: frontend/node_modules/@sinonjs/commons/lib/global.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 386 bytes
Line 
1"use strict";
2
3/**
4 * A reference to the global object
5 *
6 * @type {object} globalObject
7 */
8var globalObject;
9
10/* istanbul ignore else */
11if (typeof global !== "undefined") {
12 // Node
13 globalObject = global;
14} else if (typeof window !== "undefined") {
15 // Browser
16 globalObject = window;
17} else {
18 // WebWorker
19 globalObject = self;
20}
21
22module.exports = globalObject;
Note: See TracBrowser for help on using the repository browser.