MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / mLog

Function mLog

example/tests/gm_value_test.js:917–929  ·  view source on GitHub ↗
(msg, type = '')

Source from the content-addressed store, hash-verified

915 const listenerIds = {};
916
917 function mLog(msg, type = '') {
918 const { logBox } = refs();
919
920 const line = document.createElement('div');
921 line.className = 'log-line';
922 line.innerHTML = `
923 <span class="log-time">${nowTime()}</span>
924 <span class="log-msg ${escHtml(type)}">${msg}</span>
925 `;
926
927 logBox.appendChild(line);
928 logBox.scrollTop = logBox.scrollHeight;
929 }
930
931 async function mRefreshKV() {
932 const { kvTable, myKey: mk, accent } = refs();

Callers 3

registerMainListenersFunction · 0.85
removeMainListenersFunction · 0.85
gm_value_test.jsFile · 0.85

Calls 3

refsFunction · 0.85
nowTimeFunction · 0.85
escHtmlFunction · 0.85

Tested by

no test coverage detected