Skip to content

Commit

Permalink
feat(ExecuteCode): forward warn and error events
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Aug 23, 2021
1 parent 3f1de39 commit 5f42a0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions environments/core/extensions/ExecuteCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ module.exports = (mainWindow) => {
ev.reply("clientDebug", msg);
});

res.client.on("warn", (msg) => {
ev.reply("clientWarn", msg);
});

res.client.on("error", (msg) => {
ev.reply("clientError", msg);
});

ev.reply("executeCode", {
codeError: null,
s4d: {
Expand Down

0 comments on commit 5f42a0b

Please sign in to comment.