function checkBrowser() {
    if(typeof(webkitRTCPeerConnection) == "function") {
        window.browser = 0; //chrome/opera
    }
    else if(typeof(mozRTCPeerConnection) == "function") {
        window.browser = 1; //firefox
    }
    else {
        document.getElementById("content").innerHTML = "<h1 class=\"unsupported\">This browser is not supported</h1>";
        throw { name: 'FatalError', message: 'Unsupported browser' };
    }
}
// validate browser to make sure it's supported, and set identifying variable in window
validate browser to make sure it's supported, and set identifying variable in window
validate browser to make sure it ' s supported and set identifying variable in window
function checkBrowser() {
    if(typeof(webkitRTCPeerConnection) == "function") {
        window.browser = 0; 
    }
    else if(typeof(mozRTCPeerConnection) == "function") {
        window.browser = 1; 
    }
    else {
        document.getElementById("content").innerHTML = "<h1 class=\"unsupported\">This browser is not supported</h1>";
        throw { name: 'FatalError', message: 'Unsupported browser' };
    }
}
function checkBrowser ( ) { if ( typeof ( webkitRTCPeerConnection ) == "function" ) { window . browser = 0 ; } else if ( typeof ( mozRTCPeerConnection ) == "function" ) { window . browser = 1 ; } else { document . getElementById ( "content" ) . innerHTML = "<h1 class=\"unsupported\">This browser is not supported</h1>" ; throw { name : 'FatalError' , message : 'Unsupported browser' } ; } }
validate browser to make sure it's supported, and set identifying variable in window
validate browser to make sure it ' s supported and set identifying variable in window
//chrome/opera //firefox