Skip to content

Commit

Permalink
Update a-console.js
Browse files Browse the repository at this point in the history
unnecessary error removal, which allows scroling more than one terminal
  • Loading branch information
kylebakerio authored Sep 13, 2022
1 parent d709f6a commit 2b12130
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions a-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,8 @@ AFRAME.registerComponent('console', {
commandOffset: 0,
exploringInputHistory: false,
addKeyboardHelpers(force) {
// todo
if (window.ac && !force) {
throw new Error("helper conflict: window.ac already exists...")
} else if (window.ac && force) {
console.warn("ignoring conflict: window.ac already exists")
if (window.ac) {
console.info("ignoring conflict: window.ac already exists, will overwrite")
}
window.ac = {
logAll: true,
Expand Down

0 comments on commit 2b12130

Please sign in to comment.