From bb6b05bc002767630f08372a70a400a2ad099b85 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Tue, 19 Jun 2018 20:39:52 -0400 Subject: [PATCH] fix close button when connection to ink/stitch is lost --- print/resources/inkstitch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print/resources/inkstitch.js b/print/resources/inkstitch.js index 4a757d5f3..e9ee3e0f4 100644 --- a/print/resources/inkstitch.js +++ b/print/resources/inkstitch.js @@ -237,7 +237,7 @@ $(function() { $('button.close').click(function() { $.post('/shutdown', {}) - .done(function(data) { + .always(function(data) { window.close(); /* Chrome and Firefox both have a rule: scripts can only close windows