rpg-dialogue-js
Version:
A simple roleplay game dialogue engine and editor.
17 lines (16 loc) • 361 B
JavaScript
// Found at
// https://mathiasbynens.be/notes/globalthis
(function (Object) {
typeof globalThis !== 'object' && (
this ?
get() :
(Object.defineProperty(Object.prototype, '_T_', {
configurable: true,
get: get
}), _T_)
);
function get() {
this.globalThis = this;
delete Object.prototype._T_;
}
}(Object));