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

Function wireUserNameLabel

public/js/main.js:820–827  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

818
819// -------- username label ( --------
820function wireUserNameLabel(state) {
821 const username = (state && state.username) || localStorage.getItem('username') || '';
822 const btn = document.getElementById('userDropdownToggle') || document.getElementById('userMenuBtn');
823 if (!btn) return;
824 const label = btn.querySelector('.user-name-label');
825 if (!label) return; // don’t inject new DOM
826 label.textContent = username || '';
827}
828
829function resolveBrandThemeColor(isDark) {
830 const branding = window.__FR_BRANDING__ || {};

Callers 1

bootHeavyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected