MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / writeLog

Function writeLog

custom-tray-menu/index.js:45–49  ·  view source on GitHub ↗
(msg, type)

Source from the content-addressed store, hash-verified

43});
44
45var writeLog = function (msg, type) {
46 var logElement = $("#output");
47 logElement.innerHTML += `<span class=${type}>${msg}</span><br>`;
48 logElement.scrollTop = logElement.scrollHeight;
49};
50
51process.on('log', function (message) {
52 writeLog(message);

Callers 1

index.jsFile · 0.70

Calls 1

$Function · 0.70

Tested by

no test coverage detected