mirror of https://bitbucket.org/ausocean/av.git
audio-player: made URL relitive to current location
This commit is contained in:
parent
cd25a287b4
commit
6bef4aeefc
|
@ -72,8 +72,7 @@ function load() {
|
||||||
document.getElementById('url').value = url;
|
document.getElementById('url').value = url;
|
||||||
}
|
}
|
||||||
if (url[0] == '/') {
|
if (url[0] == '/') {
|
||||||
// url = window.location.protocol + '//' + window.location.host + url;
|
url = window.location.protocol + '//' + window.location.host + url;
|
||||||
url = "http://vidgrind.appspot.com" + url
|
|
||||||
}
|
}
|
||||||
if (url == "") {
|
if (url == "") {
|
||||||
return;
|
return;
|
||||||
|
@ -92,8 +91,8 @@ function load() {
|
||||||
|
|
||||||
var link = document.getElementById("link");
|
var link = document.getElementById("link");
|
||||||
link.href = dataURL;
|
link.href = dataURL;
|
||||||
link.download = "audio.ts";
|
link.download = "media.ts";
|
||||||
link.innerHTML = "Download MPEG-TS";
|
link.innerHTML = "Download";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.log('There was a problem with the request.');
|
console.log('There was a problem with the request.');
|
||||||
|
|
Loading…
Reference in New Issue