Skip to content

Commit 4789693

Browse files
committed
Replace const by var
Fuck Safari!
1 parent 6f1f5a6 commit 4789693

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/helper/uploadHelper.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ angular
1010
.service('uploadHelper', function($rootScope, $injector) {
1111
'use strict';
1212

13-
const http = { CREATED: 201 };
14-
13+
var HTTP = { CREATED: 201 };
1514
var concurrentUploads = {};
1615
var Sources = $injector.get('Sources');
1716

@@ -24,7 +23,7 @@ angular
2423
key: getKey(credential, file.name),
2524
AWSAccessKeyId: credential.aws_access_key_id,
2625
'Content-Type': 'multipart/form-data',
27-
success_action_status: http.CREATED,
26+
success_action_status: HTTP.CREATED,
2827
acl: 'private',
2928
policy: credential.policy,
3029
signature: credential.signature
@@ -45,7 +44,7 @@ angular
4544
delete concurrentUploads[uploadObject.id];
4645
uploadObject.isUploading = false;
4746

48-
if(xhr2.status === http.CREATED) {
47+
if(xhr2.status === HTTP.CREATED) {
4948
$rootScope.$broadcast('jsSDK.upload.uploaded', uploadObject);
5049
} else {
5150
$rootScope.$broadcast('jsSDK.upload.error', { upload: uploadObject, request: xhr2 });

0 commit comments

Comments
 (0)