mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08: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;
|