MenuMenu

RTCMultiConnection.closeBeforeUnload

Use this property to disable "onbeforeunload" stuff

How to use

connection.closeBeforeUnload = false;

Alternative

// this one is strongly recommended
window.ignoreBeforeUnload = true;

// you can do this as well
connection.onbeforeunload = function() {};