Skip to content

Commit eb3bbf4

Browse files
authored
Update vm-listener-hoc.jsx
1 parent c51f5cb commit eb3bbf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/vm-listener-hoc.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
setHasCloudVariables
2323
} from '../reducers/tw';
2424
import {setCustomStageSize} from '../reducers/custom-stage-size';
25+
import implementGuiAPI from './tw-extension-gui-api';
2526

2627
let compileErrorCounter = 0;
2728

@@ -73,6 +74,7 @@ const vmListenerHOC = function (WrappedComponent) {
7374
this.props.vm.on('COMPILE_ERROR', this.handleCompileError);
7475
this.props.vm.on('RUNTIME_STARTED', this.props.onClearCompileErrors);
7576
this.props.vm.on('STAGE_SIZE_CHANGED', this.props.onStageSizeChanged);
77+
this.props.vm.on('CREATE_UNSANDBOXED_EXTENSION_API', implementGuiAPI);
7678
}
7779
componentDidMount () {
7880
if (this.props.attachKeyboardEvents) {

0 commit comments

Comments
 (0)