MCPcopy Create free account
hub / github.com/Chainlit/cookbook / changeLoginButtonText

Function changeLoginButtonText

auth/public/script.js:1–11  ·  view source on GitHub ↗
(buttons)

Source from the content-addressed store, hash-verified

1function changeLoginButtonText(buttons) {
2 for (var i = 0; i < buttons.length; i++) {
3 if (buttons[i].innerText === 'Continue with Azure-ad-b2c') {
4 buttons[i].innerHTML = '<img class="MuiButton-startIcon MuiButton-iconSizeMedium css-6xugel MuiSvgIcon-root login-logo" ' +
5 'src="../public/b2c_logo.png" ' +
6 'alt="Log in on Client SSO" ' +
7 'role="presentation" >' +
8 'Login with Client Portal';
9 }
10 }
11}
12
13function mutationObserverCallback(mutationsList, observer) {
14 var buttons = document.querySelectorAll('button');

Callers 1

mutationObserverCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected