diff --git a/static/js/index.js b/static/js/index.js index 79f8fba..01c7944 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -121,7 +121,7 @@ function handleMessage(msg) { if (hostSelect.options[i].value == target) return; } - var opt = $('#option')[0]; + var opt = document.createElement('option'); opt.appendChild(document.createTextNode(target)); opt.value = target; $('#selectHost')[0].appendChild(opt);