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;
|
||||
}
|
||||
if (url[0] == '/') {
|
||||
// url = window.location.protocol + '//' + window.location.host + url;
|
||||
url = "http://vidgrind.appspot.com" + url
|
||||
url = window.location.protocol + '//' + window.location.host + url;
|
||||
}
|
||||
if (url == "") {
|
||||
return;
|
||||
|
@ -92,8 +91,8 @@ function load() {
|
|||
|
||||
var link = document.getElementById("link");
|
||||
link.href = dataURL;
|
||||
link.download = "audio.ts";
|
||||
link.innerHTML = "Download MPEG-TS";
|
||||
link.download = "media.ts";
|
||||
link.innerHTML = "Download";
|
||||
|
||||
} else {
|
||||
console.log('There was a problem with the request.');
|
||||
|
|
Loading…
Reference in New Issue