Remove mostly useless comment

This commit is contained in:
Donovan Preston
2018-07-06 11:05:22 -04:00
parent 085387dfd3
commit 9cbd1e0807

View File

@@ -222,9 +222,6 @@ function download(id, keychain, onprogress, canceller) {
}
});
const auth = await keychain.authHeader();
// This relative url doesn't work for android
// it could be `https://send.firefox.com/api/download/${id}`
// but then the tests don't pass
xhr.open('get', `/api/download/${id}`);
xhr.setRequestHeader('Authorization', auth);
xhr.responseType = 'blob';