MCPcopy Create free account
hub / github.com/error311/FileRise / makeEl

Function makeEl

public/js/aiChat.js:68–79  ·  view source on GitHub ↗
(tag, attrs = {}, html = '')

Source from the content-addressed store, hash-verified

66}
67
68function makeEl(tag, attrs = {}, html = '') {
69 const el = document.createElement(tag);
70 Object.entries(attrs).forEach(([k, v]) => {
71 if (k === 'className') {
72 el.className = String(v || '');
73 return;
74 }
75 el.setAttribute(k, String(v || ''));
76 });
77 if (html) el.innerHTML = html;
78 return el;
79}
80
81function isDarkModeEnabled() {
82 return !!(

Callers 1

createChatUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected