Skip to content

Commit be438b6

Browse files
committed
Update README.md
Adds concrete examples for copy paste in constructor.
1 parent 99c068f commit be438b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ bower install https://github.com/trakerr-io/trakerr-javascript
3535
Install global handler
3636
```javascript
3737
var TrakerrClient = require('trakerr-javascript'); //This is only necessary for NPM use.
38-
var client = new TrakerrClient('<api-key>', //Your API key
39-
'<app version here>', //Your app version
40-
'<deployment stage here>'); //Custom deployment stage of your code.
38+
var client = new TrakerrClient('<api-key>', //Your API key
39+
'1.0', //Your app version
40+
'production'); //Custom deployment stage of your code.
4141

4242
//any error thrown with throw new Error('...'); will now be sent to Trakerr
4343
client.handleExceptions(false);
@@ -52,9 +52,9 @@ Include the dependencies and initialize the global client variable with your API
5252
<script src="https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.3.1/stacktrace.min.js"></script>
5353
<script src="https://cdn.jsdelivr.net/gh/trakerr-com/trakerr-javascript@1.1.0/dist/trakerr.min.js"></script>
5454
<!-- initialize the client globally -->
55-
<script> trakerr = new TrakerrClient('<api-key>', '<api-key>', //Your API key
56-
'<app version here>', //Your app version
57-
'<deployment stage here>'); //Custom deployment stage of your code.
55+
<script> trakerr = new TrakerrClient('<api-key>', //Your API key
56+
'1.0', //Your app version
57+
'production'); //Custom deployment stage of your code.
5858
</script>
5959
```
6060

0 commit comments

Comments
 (0)