Save current BZZZ config-ui state before CHORUS branding update
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
29
install/config-ui/node_modules/globalthis/shim.js
generated
vendored
Normal file
29
install/config-ui/node_modules/globalthis/shim.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
|
||||
var define = require('define-properties');
|
||||
var gOPD = require('gopd');
|
||||
var getPolyfill = require('./polyfill');
|
||||
|
||||
module.exports = function shimGlobal() {
|
||||
var polyfill = getPolyfill();
|
||||
if (define.supportsDescriptors) {
|
||||
var descriptor = gOPD(polyfill, 'globalThis');
|
||||
if (
|
||||
!descriptor
|
||||
|| (
|
||||
descriptor.configurable
|
||||
&& (descriptor.enumerable || !descriptor.writable || globalThis !== polyfill)
|
||||
)
|
||||
) {
|
||||
Object.defineProperty(polyfill, 'globalThis', {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: polyfill,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
} else if (typeof globalThis !== 'object' || globalThis !== polyfill) {
|
||||
polyfill.globalThis = polyfill;
|
||||
}
|
||||
return polyfill;
|
||||
};
|
||||
Reference in New Issue
Block a user