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;
|
maxRetry = response.maxRetry;
|
||||||
}
|
}
|
||||||
chunkURL = response.uploadUrl;
|
chunkURL = response.uploadUrl;
|
||||||
if (document.location.protocol == 'https:') {
|
|
||||||
chunkURL = chunkURL.replace(/http:\/\//, 'https://');
|
|
||||||
}
|
|
||||||
if (chunkURL) {
|
if (chunkURL) {
|
||||||
|
if (document.location.protocol == 'https:') {
|
||||||
|
chunkURL = chunkURL.replace(/http:\/\//, 'https://');
|
||||||
|
}
|
||||||
that.status = 'uploading';
|
that.status = 'uploading';
|
||||||
that.progress = 0.0;
|
that.progress = 0.0;
|
||||||
// start upload
|
// start upload
|
||||||
|
|
Loading…
Reference in a new issue