youtubeDownloader
youtubeDownloader copied to clipboard
Question: Subdomain install
Hello mooradal,
I installed in an existing subdomain: joomla.localdomain.
$ cd /srv/http/joomla [http@tower joomla]$ cd Server/ [http@tower Server]$ node index.js Server Works !!! At port 4000
In script.js I tried localhost and joomla.localdomain
$ cat script.js var convertBtn = document.querySelector('.convert-button'); var URLinput = document.querySelector('.URL-input');
convertBtn.addEventListener('click', () => { console.log(
URL: ${URLinput.value}
); sendURL(URLinput.value); });function sendURL(URL) { window.location.href =
http://localhost:4000/download?URL=${URL}
; }
But I get in both cases :
ERR_CONNECTION_REFUSED
Will the example work in a subdomain?
Best
If it's still a problem, try using window.location.href = window.location.href+"/download?URL="+URL;
Thanks NismoGraphics but that did not work.
Yes, I don't Know about this Project But Node Youtube Dl Works Fine in Subdomain.