MCPcopy Create free account
hub / github.com/Surfer-Org/Protocol / customConsoleLog

Function customConsoleLog

desktop/src/main/preloadFunctions.js:3–9  ·  view source on GitHub ↗
(id, ...args)

Source from the content-addressed store, hash-verified

1const { ipcRenderer } = require('electron')
2
3function customConsoleLog(id, ...args) {
4 // Convert arguments to strings to avoid cloning issues
5 const stringArgs = args.map((arg) =>
6 typeof arg === 'object' ? JSON.stringify(arg) : arg,
7 );
8 ipcRenderer.sendToHost('console-log', id, ...stringArgs);
9};
10
11function waitForElement(
12 id,

Callers 15

preloadWebview.jsFile · 0.85
waitForElementFunction · 0.85
checkElementFunction · 0.85
exportTwitterFunction · 0.85
checkIfBookmarkExistsFunction · 0.85
exportBookmarksFunction · 0.85
exportNotionFunction · 0.85
exportChatgptFunction · 0.85
checkEmailsFunction · 0.85
exportiMessageFunction · 0.85
checkIfEmailExistsFunction · 0.85
exportGmailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected