MCPcopy Index your code
hub / github.com/pyscript/pyscript / notify

Function notify

core/src/plugins/error.js:40–56  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

38 * @param {string} message
39 */
40export function notify(message) {
41 if (dontBotherDOM) return;
42 const div = document.createElement("div");
43 div.className = "py-error";
44 div.textContent = message;
45 div.style.cssText = `
46 border: 1px solid red;
47 background: #ffdddd;
48 color: black;
49 font-family: courier, monospace;
50 white-space: pre;
51 overflow-x: auto;
52 padding: 8px;
53 margin-top: 8px;
54 `;
55 document.body.append(div);
56}

Callers 7

executeFunction · 0.90
initFunction · 0.90
notifyAndThrowFunction · 0.90
config.jsFile · 0.85
cbFunction · 0.85
error.jsFile · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected