Skip to content

Commit

Permalink
js default params
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Dec 29, 2023
1 parent 4bf2ecf commit eac611a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/templates/Namespace/namespace.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@

<script>

function displayMessage(date = new Date(), message) {
function displayMessage(date, message) {
const liveConsole = document.getElementById('liveConsole');
liveConsole.textContent += new Date(date).toISOString() + ': ' + message + '\n';
liveConsole.textContent += date.toISOString() + ': ' + message + '\n';
}

function setupSSE() {
const liveConsole = document.getElementById('liveConsole');
liveConsole.style.display = 'block';

displayMessage("you will be automatically redirected when your namespace becomes ready")
displayMessage(new Date(), "you will be automatically redirected when your namespace becomes ready")

const eventSource = new EventSource('namespace/status?namespace={defaultNamespace}');

Expand Down

0 comments on commit eac611a

Please sign in to comment.