Skip to content

Commit 0626180

Browse files
committed
Add captureMessage/captureException to scratch example
1 parent bfa1626 commit 0626180

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

example/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
<button onclick="testSynthetic()">test synthetic</button>
3737
<button onclick="throwString()">throw string</button>
3838
<button onclick="showDialog()">show dialog</button>
39+
<button onclick="captureMessage()">capture message</button>
40+
<button onclick="captureException()">capture exception</button>
3941
<button onclick="blobExample()">blob example</button>
4042
<input/>
4143

example/scratch.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ function blobExample() {
6868
xhr.send();
6969
}
7070

71+
function captureMessage() {
72+
Raven.captureMessage('lol did it broke');
73+
}
74+
75+
function captureException() {
76+
Raven.captureException(new Error('lol did it broke'));
77+
}
78+
7179
function a() { b(); }
7280
function b() { c(); }
7381
function c() { d(); }

0 commit comments

Comments
 (0)