Skip to content

Commit 035ea0c

Browse files
committed
report extensions that the project uses
1 parent 0e2ce82 commit 035ea0c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/containers/gui.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ class GUI extends React.Component {
7474
// this only notifies container when a project changes from not yet loaded to loaded
7575
// At this time the project view in www doesn't need to know when a project is unloaded
7676
this.props.onProjectLoaded();
77+
78+
const vm = this.props.vm;
79+
// const intl = this.props.intl;
80+
console.log(vm.getLoadedExtensionsInfo());
81+
const loadedExtensionIds = vm.getLoadedExtensionsInfo();
82+
83+
window.parent.postMessage({
84+
type: 'codetorch-extensions-loaded',
85+
payload: loadedExtensionIds
86+
}, '*');
7787
}
7888
}
7989
render () {

0 commit comments

Comments
 (0)