MCPcopy
hub / github.com/truelockmc/streambert / sendProgress

Function sendProgress

src/ipc/downloads.js:30–35  ·  view source on GitHub ↗
(update)

Source from the content-addressed store, hash-verified

28let _getMainWindow = () => null;
29
30function sendProgress(update) {
31 const mw = _getMainWindow();
32 if (mw && !mw.isDestroyed()) {
33 mw.webContents.send("download-progress", update);
34 }
35}
36
37function loadDownloads() {
38 try {

Callers 2

handleLineFunction · 0.85
registerFunction · 0.85

Calls 1

_getMainWindowFunction · 0.70

Tested by

no test coverage detected