desktop/static/index.web.dev.html [84:127]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function openError(text) { if (suppressErrors) { return; } const box = document.querySelector('.__infinity-dev-box-error'); box.removeAttribute('hidden'); box.textContent = text; box.appendChild(closeButton); } window.flipperShowError = openError; window.flipperHideError = () => { const box = document.querySelector('.__infinity-dev-box-error'); box.setAttribute('hidden', true); } const closeButton = document.createElement('button'); closeButton.addEventListener('click', window.flipperHideError); closeButton.textContent = 'X'; // load correct theme (n.b. this doesn't handle system value specifically, will assume light in such cases) try { if (window.flipperConfig.theme === 'dark') { document.getElementById('flipper-theme-import').href = "themes/dark.css"; } else { document.getElementById('flipper-theme-import').href = "themes/light.css"; } } catch (e) { console.error("Failed to initialize theme", e); document.getElementById('flipper-theme-import').href = "themes/light.css"; } function init() { const script = document.createElement('script'); script.src = window.flipperConfig.entryPoint; script.onerror = (e) => { openError('Script failure. Check Chrome console for more info.'); }; document.body.appendChild(script); } init(); })(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - desktop/static/index.web.html [67:110]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function openError(text) { if (suppressErrors) { return; } const box = document.querySelector('.__infinity-dev-box-error'); box.removeAttribute('hidden'); box.textContent = text; box.appendChild(closeButton); } window.flipperShowError = openError; window.flipperHideError = () => { const box = document.querySelector('.__infinity-dev-box-error'); box.setAttribute('hidden', true); } const closeButton = document.createElement('button'); closeButton.addEventListener('click', window.flipperHideError); closeButton.textContent = 'X'; // load correct theme (n.b. this doesn't handle system value specifically, will assume light in such cases) try { if (window.flipperConfig.theme === 'dark') { document.getElementById('flipper-theme-import').href = "themes/dark.css"; } else { document.getElementById('flipper-theme-import').href = "themes/light.css"; } } catch (e) { console.error("Failed to initialize theme", e); document.getElementById('flipper-theme-import').href = "themes/light.css"; } function init() { const script = document.createElement('script'); script.src = window.flipperConfig.entryPoint; script.onerror = (e) => { openError('Script failure. Check Chrome console for more info.'); }; document.body.appendChild(script); } init(); })(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -