Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a9597e7

Browse files
committedJun 3, 2015
Added SystemJS Example
1 parent 8f2571f commit a9597e7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
 

‎example/SystemJS/index.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head lang="en">
4+
<meta charset="UTF-8">
5+
<title>Exceptionless Sample with SystemJS</title>
6+
</head>
7+
<body>
8+
<script src="https://jspm.io/system@0.16.js"></script>
9+
<script type="application/javascript">
10+
'use strict';
11+
12+
System.import('github:exceptionless/exceptionless.javascript').then(function (exceptionless) {
13+
var client = exceptionless.ExceptionlessClient.default;
14+
client.config.apiKey = 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw';
15+
client.config.serverUrl = 'http://localhost:50000';
16+
client.config.useDebugLogger();
17+
18+
// set some default data
19+
client.config.defaultData['SampleUser'] = {
20+
id: 1,
21+
name: 'Blake',
22+
password: '123456',
23+
passwordResetToken: 'a reset token',
24+
myPasswordValue: '123456',
25+
myPassword: '123456',
26+
customValue: 'Password',
27+
value: {
28+
Password: '123456'
29+
}
30+
};
31+
32+
client.config.defaultTags.push('Example', 'JavaScript', 'jspm', 'SystemJS');
33+
client.submitLog('Testing');
34+
});
35+
</script>
36+
</body>
37+
</html>

0 commit comments

Comments
 (0)
Please sign in to comment.