Commit 03ec6bd4 authored by ibuler's avatar ibuler

[Update] 录像页面不再显示确认关闭窗口

parent afa13478
......@@ -163,6 +163,7 @@ class SSHws(ProxyNamespace):
def proxy():
forwarder.proxy()
self.emit('data', {'data': 'Disconnected', 'room': client_id}, room=client_id)
self.logout(client_id, connection)
self.socketio.start_background_task(proxy)
......
......@@ -25,8 +25,9 @@ export class AppComponent {
const notInIframe = window.self === window.top;
const notInReplay = location.pathname.indexOf('/luna/replay') === -1;
if (environment.production && notInIframe && notInReplay) {
$event.returnValue = true;
return false;
}
return true;
}
}
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