summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-06-19 20:39:52 -0400
committerLex Neva <github.com@lexneva.name>2018-06-19 20:39:52 -0400
commitbb6b05bc002767630f08372a70a400a2ad099b85 (patch)
treefb6b5c718bf8909a6973007082cdc68fd5cb1019 /print
parentc59f94818fda473c811508825a11c6db8298998a (diff)
fix close button when connection to ink/stitch is lost
Diffstat (limited to 'print')
-rw-r--r--print/resources/inkstitch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/print/resources/inkstitch.js b/print/resources/inkstitch.js
index 4a757d5f..e9ee3e0f 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