Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit f065b8d

Browse files
authored
Merge pull request #1411 from TaPO4eg3D/master
fix #1324 Define selectedComponentProperty in the way it could be redefined
2 parents fcd7d6b + c16f3a4 commit f065b8d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/backend/backend.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,13 @@ const selectedComponentPropertyKey = '$$el';
264264

265265
const noSelectedComponentWarningText = 'There is no component selected.';
266266

267-
Object.defineProperty(window, selectedComponentPropertyKey,
268-
{ value: noSelectedComponentWarningText });
267+
Object.defineProperty(
268+
window, selectedComponentPropertyKey,
269+
{
270+
value: noSelectedComponentWarningText,
271+
configurable: true
272+
}
273+
);
269274

270275
const messageHandler = (message: Message<any>) => {
271276

@@ -442,7 +447,8 @@ export const consoleReference = (node: Node) => {
442447
return ng.probe(node.nativeElement());
443448
}
444449
return null;
445-
}
450+
},
451+
configurable: true
446452
});
447453
};
448454

0 commit comments

Comments
 (0)