We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c54b4e commit c3c38cfCopy full SHA for c3c38cf
app/js/presentation.js
@@ -18,7 +18,7 @@ function detachOutput() {
18
// Event is attached now to avoid unecessary binding
19
editor.on('change', (e) => {
20
if (conf.get('presentation.update-type') === 'true') {
21
- console.log(editor.getValue());
+ ipc.send('output-channel', { code: editor.getValue() });
22
}
23
});
24
app/js/presentation.output.js
@@ -24,5 +24,5 @@ $(function () {
function receiveOutput() {
25
const arg = electron.remote.getGlobal('output');
26
editor.setValue(arg.code);
27
- setOutput(arg.output);
+ if (arg.output) setOutput(arg.output);
28
0 commit comments