Skip to content

Commit c3c38cf

Browse files
committed
Close #23
1 parent 3c54b4e commit c3c38cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/js/presentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function detachOutput() {
1818
// Event is attached now to avoid unecessary binding
1919
editor.on('change', (e) => {
2020
if (conf.get('presentation.update-type') === 'true') {
21-
console.log(editor.getValue());
21+
ipc.send('output-channel', { code: editor.getValue() });
2222
}
2323
});
2424
}

app/js/presentation.output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ $(function () {
2424
function receiveOutput() {
2525
const arg = electron.remote.getGlobal('output');
2626
editor.setValue(arg.code);
27-
setOutput(arg.output);
27+
if (arg.output) setOutput(arg.output);
2828
}

0 commit comments

Comments
 (0)