unexplode console shortcuts

This commit is contained in:
Nuckyz 2024-08-03 15:13:27 -03:00
parent 45a876a0d5
commit f9c11a1149
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -183,8 +183,9 @@ function loadAndCacheShortcut(key: string, val: any, forceLoad: boolean) {
const descriptors = Object.getOwnPropertyDescriptors(value);
for (const propKey in descriptors) {
const descriptor = descriptors[propKey];
if (value[propKey] == null) continue;
const descriptor = descriptors[propKey];
if (descriptor.writable === true || descriptor.set != null) {
const newValue = unwrapProxy(value[propKey]);
if (newValue != null) {