mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-23 10:56:09 -07:00
17 lines
307 B
JavaScript
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;
|