diff --git a/index.html b/index.html index dc983be..78452e9 100644 --- a/index.html +++ b/index.html @@ -35,7 +35,7 @@

Open Links in New Tabs

event.preventDefault(); var linkList = document.getElementById("linkList").value; - var links = linkList.split('\n').map(link => link.trim()); + var links = linkList.replace(/\s+/g, '\n').split('\n').map(link => link.trim()); var useHttp = document.getElementById("httpCheckbox").checked; var includeNoNumber = document.getElementById("noNumberCheckbox").checked;