added sentry

This commit is contained in:
Abhinav Adduri 2017-06-22 14:50:57 -07:00
parent 6d8330992d
commit 50714d35a5
12 changed files with 1065 additions and 961 deletions

View file

@ -2,6 +2,9 @@ const FileReceiver = require('./fileReceiver');
const { notify } = require('./utils');
const $ = require('jquery');
const Raven = window.Raven;
$(document).ready(function() {
$('#download-progress').hide();
$('#send-file').click(() => {
@ -59,6 +62,10 @@ $(document).ready(function() {
a.download = fname;
document.body.appendChild(a);
a.click();
})
.catch(err => {
Raven.captureException(err);
return Promise.reject(err);
});
};