Skip to content

Commit 5ac3527

Browse files
committed
Fix bug about undefined uploadUrl
1 parent 0d3c285 commit 5ac3527

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ var ReactQiniu = React.createClass({
2929
},
3030

3131
getDefaultProps: function() {
32+
var uploadUrl = 'http://upload.qiniu.com'
3233
if (window.location.protocol === 'https:') {
3334
uploadUrl = 'https://up.qbox.me/'
34-
} else {
35-
uploadUrl = 'http://upload.qiniu.com'
3635
}
3736

3837
return {

0 commit comments

Comments
 (0)