Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit a865a67

Browse files
author
Parth Shah
committed
Merge branch 'hotfix/media-type-fix' into dev
2 parents 13be4e9 + 19e7614 commit a865a67

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

app/services/helpers.service.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ import _ from 'lodash'
308308

309309
var mimeTypesByExtension = {
310310
zip: [
311+
'application/x-download',
312+
'application/download',
311313
'application/zip',
312314
'application/x-zip',
313315
'application/x-zip-compressed',

app/submissions/submissions.controller.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@ import angular from 'angular'
55

66
angular.module('tc.submissions').controller('SubmissionsController', SubmissionsController)
77

8-
SubmissionsController.$inject = ['challengeToSubmitTo', '$state']
8+
SubmissionsController.$inject = ['challengeToSubmitTo', '$state', 'logger']
99

10-
function SubmissionsController(challengeToSubmitTo, $state) {
10+
function SubmissionsController(challengeToSubmitTo, $state, logger) {
1111
var vm = this
1212

1313
vm.error = !!challengeToSubmitTo.error
14+
// test to see if sentry logging works
1415
try {
16+
var a = null
1517
a[1].undef
1618
} catch (e) {
17-
console.log('Raven', window.Raven)
18-
window.Raven.captureException(e)
19-
console.log(window.Raven.lastEventId())
19+
if (window.Raven) {
20+
window.Raven.captureException(e)
21+
logger.debug(window.Raven.lastEventId())
22+
}
2023
}
2124
if (vm.error) {
2225
vm.errorType = challengeToSubmitTo.error.type

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"angular-mocks": "^1.4.9",
12-
"appirio-tech-webpack-config": "^0.3.0",
12+
"appirio-tech-webpack-config": "0.3.6",
1313
"babel-polyfill": "^6.7.2",
1414
"bardjs": "^0.1.8",
1515
"bower": "^1.6.8",

0 commit comments

Comments
 (0)