function callConnectedUI(status, message) {
    // Class names.
    var to = 'success';
    var from = 'dark';

    // Check status
    if (status != true) {
        to = 'dark';
        from = 'success';
    }

    // UI: Peerjs connection status.
    $('#call-connected').addClass('badge-' + to).removeClass('badge-' + from);
    $('#call-connected').text(message);
}
/**
 * Helper function to display call connected/not connected.
 *
 * @return void
 */
Helper function to display call connected/not connected.
@return void
Helper function to display call connected / not connected . @return void
function callConnectedUI(status, message) {
    var to = 'success';
    var from = 'dark';
    if (status != true) {
        to = 'dark';
        from = 'success';
    }
    $('#call-connected').addClass('badge-' + to).removeClass('badge-' + from);
    $('#call-connected').text(message);
}
function callConnectedUI ( status , message ) { var to = 'success' ; var from = 'dark' ; if ( status != true ) { to = 'dark' ; from = 'success' ; } $ ( '#call-connected' ) . addClass ( 'badge-' + to ) . removeClass ( 'badge-' + from ) ; $ ( '#call-connected' ) . text ( message ) ; }
Helper function to display call connected/not connected.
Helper function to display call connected / not connected .
// Class names. // Check status // UI: Peerjs connection status.