Skip to content

Commit

Permalink
[Update] 录像页面不再显示确认关闭窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Feb 14, 2019
1 parent afa1347 commit 03ec6bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def connect_host(self, message):

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)

Expand Down
3 changes: 2 additions & 1 deletion src/app/pages/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 03ec6bd

Please sign in to comment.