mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
19 lines
338 B
JavaScript
19 lines
338 B
JavaScript
var root = typeof window !== 'undefined' ?
|
|
window : typeof global !== 'undefined' ?
|
|
global : {};
|
|
|
|
module.exports = Individual
|
|
|
|
function Individual(key, value) {
|
|
if (root[key]) {
|
|
return root[key]
|
|
}
|
|
|
|
Object.defineProperty(root, key, {
|
|
value: value
|
|
, configurable: true
|
|
})
|
|
|
|
return value
|
|
}
|