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

Function resolveHeaderTitle

public/js/auth.js:40–46  ·  view source on GitHub ↗
(rawTitle, isPro)

Source from the content-addressed store, hash-verified

38const PRO_DEFAULT_HEADER_TITLE = 'FileRise Pro';
39
40function resolveHeaderTitle(rawTitle, isPro) {
41 const cleaned = String(rawTitle || '').trim();
42 if (!cleaned || cleaned === DEFAULT_HEADER_TITLE) {
43 return isPro ? PRO_DEFAULT_HEADER_TITLE : DEFAULT_HEADER_TITLE;
44 }
45 return cleaned;
46}
47
48async function fetchUserPermissionsOnce() {
49 if (window.__FR_PERMISSIONS_CACHE) return window.__FR_PERMISSIONS_CACHE;

Callers 1

loadAdminConfigFuncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected