remove history console prints

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-11-28 12:46:37 -03:00
parent 593a37bdfc
commit fdb93bad26
2 changed files with 1 additions and 3 deletions

View file

@ -154,7 +154,7 @@ const commands = makeReadOnly(
*/
runCommand(name, title, options = null) {
if (!this._types[name])
throw CommandNonExistentError(
throw new CommandNonExistentError(
`[commands] Command '${name}' does not exist`
);
this._types[name](title, options);

View file

@ -30,7 +30,6 @@
if (
!commands._history.find((entry) => `hist-${entry.id}` === child.id)
) {
console.log("Removing " + child.id);
historyView.removeChild(child);
}
});
@ -38,7 +37,6 @@
commands._history.forEach((entry, index) => {
if (!document.getElementById(`hist-${entry.id}`)) {
console.log("Inserting " + entry.id);
historyView.appendChild(
makeHistoryEntry(index, `hist-${entry.id}`, entry.title)
);