Use relative URL paths for download and upload

This commit is contained in:
Keith Morrow 2015-06-06 00:46:23 -04:00
parent 72cc4507d2
commit 3df32323db
2 changed files with 4 additions and 4 deletions

View file

@ -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();
});
});

View file

@ -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 () {
}
})
});
});