Skip to content

Commit

Permalink
Merge branch 'gh-pages' into muxer
Browse files Browse the repository at this point in the history
  • Loading branch information
fippo authored Jan 20, 2024
2 parents ab1605c + 832b3cd commit 2b97963
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/content/peerconnection/trickle-ice/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ function selectServer(event) {
}

function addServer() {
if (urlInput.value === '' && usernameInput.value === '' && passwordInput.value === '') {
// Ignore since this leads to invisible items being added to the list.
console.warn('Not adding empty ICE server input');
return;
}
// Store the ICE server as a stringified JSON object in option.value.
const option = document.createElement('option');
const iceServer = {
Expand Down

0 comments on commit 2b97963

Please sign in to comment.