diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-06-19 20:39:52 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-06-19 20:39:52 -0400 |
| commit | bb6b05bc002767630f08372a70a400a2ad099b85 (patch) | |
| tree | fb6b5c718bf8909a6973007082cdc68fd5cb1019 | |
| parent | c59f94818fda473c811508825a11c6db8298998a (diff) | |
fix close button when connection to ink/stitch is lost
| -rw-r--r-- | print/resources/inkstitch.js | 2 |
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 |
