remove history console prints
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
593a37bdfc
commit
fdb93bad26
2 changed files with 1 additions and 3 deletions
|
@ -154,7 +154,7 @@ const commands = makeReadOnly(
|
||||||
*/
|
*/
|
||||||
runCommand(name, title, options = null) {
|
runCommand(name, title, options = null) {
|
||||||
if (!this._types[name])
|
if (!this._types[name])
|
||||||
throw CommandNonExistentError(
|
throw new CommandNonExistentError(
|
||||||
`[commands] Command '${name}' does not exist`
|
`[commands] Command '${name}' does not exist`
|
||||||
);
|
);
|
||||||
this._types[name](title, options);
|
this._types[name](title, options);
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
if (
|
if (
|
||||||
!commands._history.find((entry) => `hist-${entry.id}` === child.id)
|
!commands._history.find((entry) => `hist-${entry.id}` === child.id)
|
||||||
) {
|
) {
|
||||||
console.log("Removing " + child.id);
|
|
||||||
historyView.removeChild(child);
|
historyView.removeChild(child);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -38,7 +37,6 @@
|
||||||
|
|
||||||
commands._history.forEach((entry, index) => {
|
commands._history.forEach((entry, index) => {
|
||||||
if (!document.getElementById(`hist-${entry.id}`)) {
|
if (!document.getElementById(`hist-${entry.id}`)) {
|
||||||
console.log("Inserting " + entry.id);
|
|
||||||
historyView.appendChild(
|
historyView.appendChild(
|
||||||
makeHistoryEntry(index, `hist-${entry.id}`, entry.title)
|
makeHistoryEntry(index, `hist-${entry.id}`, entry.title)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue