mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Wait a bit on close
This commit is contained in:
@@ -85,11 +85,13 @@
|
||||
}
|
||||
};
|
||||
reopenOnClose = function() {
|
||||
if (quit) {
|
||||
return;
|
||||
}
|
||||
ws.shell = new WebSocket(wsUrl + '/ws' + path);
|
||||
return init_shell_ws();
|
||||
return setTimeout(function() {
|
||||
if (quit) {
|
||||
return;
|
||||
}
|
||||
ws.shell = new WebSocket(wsUrl + '/ws' + path);
|
||||
return init_shell_ws();
|
||||
}, 100);
|
||||
};
|
||||
write = function(data) {
|
||||
if (term) {
|
||||
|
||||
4
butterfly/static/main.min.js
vendored
4
butterfly/static/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -92,9 +92,11 @@ document.addEventListener 'DOMContentLoaded', ->
|
||||
window.open('','_self').close()
|
||||
|
||||
reopenOnClose = ->
|
||||
return if quit
|
||||
ws.shell = new WebSocket wsUrl + '/ws' + path
|
||||
init_shell_ws()
|
||||
setTimeout ->
|
||||
return if quit
|
||||
ws.shell = new WebSocket wsUrl + '/ws' + path
|
||||
init_shell_ws()
|
||||
, 100
|
||||
|
||||
write = (data) ->
|
||||
if term
|
||||
|
||||
Reference in New Issue
Block a user