Skip to content

Commit 994a04c

Browse files
committed
Fix promise error handler
1 parent f6d9c52 commit 994a04c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

octoprint_gcodethumbs/static/js/gcode-preview-viewmodel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ $(function() {
9090
insertAfter(canvas, element.querySelector('.title'))
9191
}
9292
})
93-
.error(function() {
93+
.catch(function() {
9494
downloading = false;
9595
});
9696
}

0 commit comments

Comments
 (0)