Skip to content

Commit 2b97963

Browse files
authored
Merge branch 'gh-pages' into muxer
2 parents ab1605c + 832b3cd commit 2b97963

File tree

1 file changed

+5
-0
lines changed
  • src/content/peerconnection/trickle-ice/js

1 file changed

+5
-0
lines changed

src/content/peerconnection/trickle-ice/js/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ function selectServer(event) {
7777
}
7878

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

0 commit comments

Comments
 (0)