Commit 6654d660 authored by Benjamin Fischer's avatar Benjamin Fischer

Vispa.setupSocket: fixed "reload" on socket/server disconnect

parent dfe23620
......@@ -145,7 +145,7 @@ define([
// setup other events
$(window).bind("beforeunload", function() {
if (!self.args.global.devMode) {
if (!self.args.global.devMode && !self.varData.socketDisconnectDialog) {
return "";
}
});
......@@ -435,7 +435,7 @@ define([
iconClass: "fa-refresh",
label: "Reload",
class: "btn btn-primary",
calllback: window.location.reload.bind(window.location),
callback: window.location.reload.bind(window.location),
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment