|
|
@ -26,8 +26,8 @@ export const resetCompilerMode = () => (dispatch: React.Dispatch<any>) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const listenToEvents = (compileTabLogic) => (dispatch: React.Dispatch<any>) => { |
|
|
|
export const listenToEvents = (compileTabLogic, api) => (dispatch: React.Dispatch<any>) => { |
|
|
|
compileTabLogic.on('editor', 'sessionSwitched', () => { |
|
|
|
api.on('editor', 'sessionSwitched', () => { |
|
|
|
dispatch(setEditorMode('sessionSwitched')) |
|
|
|
dispatch(setEditorMode('sessionSwitched')) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -39,7 +39,7 @@ export const listenToEvents = (compileTabLogic) => (dispatch: React.Dispatch<any |
|
|
|
dispatch(setCompilerMode('compilationDuration', speed)) |
|
|
|
dispatch(setCompilerMode('compilationDuration', speed)) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
compileTabLogic.on('editor', 'contentChanged', () => { |
|
|
|
api.on('editor', 'contentChanged', () => { |
|
|
|
dispatch(setEditorMode('contentChanged')) |
|
|
|
dispatch(setEditorMode('contentChanged')) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|