unexplode console shortcuts
This commit is contained in:
parent
45a876a0d5
commit
f9c11a1149
|
@ -183,8 +183,9 @@ function loadAndCacheShortcut(key: string, val: any, forceLoad: boolean) {
|
||||||
const descriptors = Object.getOwnPropertyDescriptors(value);
|
const descriptors = Object.getOwnPropertyDescriptors(value);
|
||||||
|
|
||||||
for (const propKey in descriptors) {
|
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) {
|
if (descriptor.writable === true || descriptor.set != null) {
|
||||||
const newValue = unwrapProxy(value[propKey]);
|
const newValue = unwrapProxy(value[propKey]);
|
||||||
if (newValue != null) {
|
if (newValue != null) {
|
||||||
|
|
Loading…
Reference in a new issue