summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2019-04-15 19:56:44 -0400
committerLex Neva <github.com@lexneva.name>2019-04-15 19:56:44 -0400
commit1edd5c86355bb3bb02754fe729a2b51a3a8b1a60 (patch)
treef1e1e1b7a2d9dbf54ae696e49e4cfa4428341b2a
parent884e193384ee34bbcb2a7cc7aa39b40e1c3334a9 (diff)
remove last vestige of /printing/start
-rw-r--r--print/resources/inkstitch.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/print/resources/inkstitch.js b/print/resources/inkstitch.js
index 32a9a207..7c972c7a 100644
--- a/print/resources/inkstitch.js
+++ b/print/resources/inkstitch.js
@@ -661,15 +661,11 @@ $(function() {
// rendering slows down the browser enough that we can miss sending
// pings, so tell the server side to wait for us
- $.get("/printing/start")
- .done(function() {
- ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, canvas.width, canvas.height);
- realistic_cache[item] = '<svg width=' + image.width + ' height=' + image.height + ' xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' +
- '<image x=0 y=0 width=' + image.width + ' height=' + image.height + ' xlink:href="' + canvas.toDataURL() + '" />' +
- '</svg>';
- finalize(realistic_cache[item]);
- $.get("/printing/end");
- });
+ ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, canvas.width, canvas.height);
+ realistic_cache[item] = '<svg width=' + image.width + ' height=' + image.height + ' xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' +
+ '<image x=0 y=0 width=' + image.width + ' height=' + image.height + ' xlink:href="' + canvas.toDataURL() + '" />' +
+ '</svg>';
+ finalize(realistic_cache[item]);
};
image.src = '/realistic/' + item;
} else {