function clearMessages()

in reference-architectures/cloud_deploy_flow/WebsiteDemo/public/script.js [56:67]


function clearMessages() {
  fetch('/clear-messages', {
    method: 'POST',
  })
    .then((response) => {
      if (response.ok) {
        lastMessageData = {}; // Clear the frontend message data
        updateMessages(); // Update the frontend to show empty message boxes
      }
    })
    .catch((error) => console.error('Error clearing messages:', error));
}