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 07af240 commit 8cc8eb4Copy full SHA for 8cc8eb4
octoprint_gcodethumbs/static/js/gcode-preview-viewmodel.js
@@ -34,8 +34,8 @@ $(function() {
34
35
if (elements.length)
36
enrichWithPreview(elements[0]);
37
-
38
- timer = setTimeout(monitorDom, 1000);
+ else
+ timer = setTimeout(monitorDom, 1000);
39
}
40
41
function getElements() {
@@ -104,11 +104,13 @@ $(function() {
104
// attach to DOM
105
insertAfter(canvas, element.querySelector('.title'));
106
107
108
})
109
.catch(function(e) {
110
console.warn('error while getting file', e);
111
downloading = false;
112
errors[filename] = e;
113
114
});
115
116
0 commit comments