Sha256: a870f8c8c9f0a96a273e497b73e681937511a79b4a8692e9d511a666dce22ce5
Contents?: true
Size: 472 Bytes
Versions: 26
Compression:
Stored size: 472 Bytes
Contents
var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g;
Version data entries
26 entries across 25 versions & 8 rubygems