8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11956f3 commit c16dcdaCopy full SHA for c16dcda
app.js
@@ -90,7 +90,7 @@ Application.prototype.hotkey = function (event) {
90
var direction = {37: LEFT, 38: TOP, 39: RIGHT, 40: BOTTOM}[event.keyCode]
91
if (typeof direction != 'undefined') {
92
if (direction == this.boxbot.bot.getCurrentDirection()) {
93
- this.boxbot.run(this.boxbot.go).catch(function (e) {
+ this.boxbot.run(this.boxbot.go).then(null, function (e) {
94
console.log(e)
95
})
96
} else {
0 commit comments