forked from 0x2620/pandora
only check for https if chunkURL is defined
This commit is contained in:
parent
550ced514d
commit
58c36761ba
1 changed files with 3 additions and 3 deletions
|
@ -73,10 +73,10 @@ pandora.chunkupload = function(options) {
|
|||
maxRetry = response.maxRetry;
|
||||
}
|
||||
chunkURL = response.uploadUrl;
|
||||
if (chunkURL) {
|
||||
if (document.location.protocol == 'https:') {
|
||||
chunkURL = chunkURL.replace(/http:\/\//, 'https://');
|
||||
}
|
||||
if (chunkURL) {
|
||||
that.status = 'uploading';
|
||||
that.progress = 0.0;
|
||||
// start upload
|
||||
|
|
Loading…
Reference in a new issue