|
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 | */
|
|---|
| 8 | var globalObject;
|
|---|
| 9 |
|
|---|
| 10 | /* istanbul ignore else */
|
|---|
| 11 | if (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 |
|
|---|
| 22 | module.exports = globalObject;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.