Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function startTest() {
audioOnly = precallDiv.querySelector('#precall input').checked;
var timeoutSelect = precallDiv.querySelector('select');
var timeout = timeoutSelect.options[timeoutSelect.selectedIndex].text * 1000;
var options = {
audioOnly: audioOnly,
timeout: timeout
};
otNetworkTest = new NetworkTest(OT, sessionInfo, options);
otNetworkTest.testConnectivity()
.then(results => ConnectivityUI.displayTestConnectivityResults(results))
.then(testQuality);
}