Use relative URL paths for download and upload
This commit is contained in:
parent
72cc4507d2
commit
3df32323db
2 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ $(function () {
|
|||
function downloadfromident(ident) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onload = downloaded
|
||||
xhr.open('GET', 'https://e.3d3.ca/i/' + ident.ident)
|
||||
xhr.open('GET', 'i/' + ident.ident)
|
||||
xhr.responseType = 'blob'
|
||||
|
||||
xhr.addEventListener('progress', downloadprogress, false)
|
||||
|
@ -100,4 +100,4 @@ $(function () {
|
|||
$(window).on('hashchange', hashchanged)
|
||||
hashchanged();
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
@ -19,7 +19,7 @@ $(function () {
|
|||
formdata.append('ident', data.ident)
|
||||
formdata.append('file', data.encrypted)
|
||||
$.ajax({
|
||||
url: 'https://e.3d3.ca/up',
|
||||
url: 'up',
|
||||
data: formdata,
|
||||
cache: false,
|
||||
processData: false,
|
||||
|
@ -148,4 +148,4 @@ $(function () {
|
|||
}
|
||||
})
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue