MCPcopy Create free account
hub / github.com/PierXuY/ChatGPT-Assistant / onDataFromPython

Function onDataFromPython

text_toolkit/text_toolkit.js:53–58  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

51
52// 接收来自Python的参数
53function onDataFromPython(event) {
54 playBtn.setAttribute("data-idr", event.data.args.data_idr);
55 if (event.data.args.data_idr.includes('assistant')) {
56 deleteButton.style.display = 'inline-block';
57 }
58}
59
60window.addEventListener("message", onDataFromPython, false);
61

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected