project/src/main/webapp/script.js
/**
 * Adds the logout url to logout button.
 */
Adds the logout url to logout button.
Adds the logout url to logout button .
async function addLogoutUrlToButton() {
  const response = await fetch('/logout-url');
  const logoutUrl = await response.text();
  const logoutPrompt = document.getElementById('logout-prompt');
  logoutPrompt.href = logoutUrl;
}
async function addLogoutUrlToButton ( ) { const response = await fetch ( '/logout-url' ) ; const logoutUrl = await response . text ( ) ; const logoutPrompt = document . getElementById ( 'logout-prompt' ) ; logoutPrompt . href = logoutUrl ; }
Adds the logout url to logout button.
Adds the logout url to logout button .