public/script/debug_interface.js
// Writes the given |message| (in monospace font) to the console.
Writes the given |message| (in monospace font) to the console.
Writes the given |message| ( in monospace font ) to the console .
consoleMessage(title, message) {
        const detailsElement = document.createElement('details');
        const summaryElement = document.createElement('summary');
        summaryElement.innerText = title;
        detailsElement.appendChild(summaryElement);
        if (message) {
            const contentElement = document.createElement('pre');
            contentElement.innerText = JSON.stringify(message);
            detailsElement.appendChild(contentElement);
        }
        this.#elements.console.appendChild(detailsElement);
        this.#elements.console.scrollTop =
            this.#elements.console.scrollHeight - this.#elements.console.clientHeight;
    }
consoleMessage ( title , message ) { const detailsElement = document . createElement ( 'details' ) ; const summaryElement = document . createElement ( 'summary' ) ; summaryElement . innerText = title ; detailsElement . appendChild ( summaryElement ) ; if ( message ) { const contentElement = document . createElement ( 'pre' ) ; contentElement . innerText = JSON . stringify ( message ) ; detailsElement . appendChild ( contentElement ) ; } this . #elements . console . appendChild ( detailsElement ) ; this . #elements . console . scrollTop = this . #elements . console . scrollHeight - this . #elements . console . clientHeight ; }
Writes the given |message| (in monospace font) to the console.
Writes the given |message| ( in monospace font ) to the console .