Skip to content

Commit 084f3b4

Browse files
committed
Try out raven
1 parent 4f8be0a commit 084f3b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

static/js/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ var $ = document.querySelector.bind(document),
4242
console.error('window.Raven is undefined, something went wrong while loading sentry-raven library');
4343
}
4444

45+
// Test Raven integration
46+
try {
47+
throw new Error('Raven is mad, yo');
48+
} catch(e) {
49+
Raven.captureException(e);
50+
}
51+
4552
// DOM Elements
4653
var wrapper = $('.wrapper'),
4754
inputTextArea = $("#input"),

0 commit comments

Comments
 (0)