Skip to content

Commit

Permalink
FIx#1
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcherTannic authored Dec 23, 2024
1 parent f34623f commit 8c93754
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions samples/SampleLauncher/src/gfn_sdk_demo/resources/gfn_sdk.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,13 @@
* Adds a given input message to the console log as well as the log text box.
* @param message Input string to be added to the log
*/
function setStatus(message) {
console.log(message);
var timestamp = new Date();
document.getElementById('status').innerHTML = '[' + timestamp.toLocaleTimeString() + '] ' + message + '\n' + document.getElementById('status').innerHTML;
}
function setStatus(message) {
console.log(message);
var timestamp = new Date();
var statusElement = document.getElementById('status');
var currentText = statusElement.textContent;
statusElement.textContent = '[' + timestamp.toLocaleTimeString() + '] ' + message + '\n' + currentText;
}

/**
* Initializes the NVIDIA GeForce NOW SDK and other startup values. Also checks
Expand Down

0 comments on commit 8c93754

Please sign in to comment.