File tree Expand file tree Collapse file tree 5 files changed +15
-26
lines changed Expand file tree Collapse file tree 5 files changed +15
-26
lines changed Original file line number Diff line number Diff line change
1
+ # Generated browserify bundle
2
+ all.js
Original file line number Diff line number Diff line change 3
3
1 . Require and initialize the Rollbar javascript module:
4
4
5
5
``` js
6
- // npm install --save rollbar-browser
7
- var rollbar = require (' rollbar-browser ' );
6
+ // npm install --save rollbar
7
+ var rollbar = require (' rollbar' );
8
8
9
9
var rollbarConfig = {
10
10
accessToken: ' POST_CLIENT_ITEM_ACCESS_TOKEN' ,
32
32
33
33
1 . Edit index.js and add your Rollbar ` POST_CLIENT_ITEM_ACCESS_TOKEN `
34
34
- Sign up for a free account [ here] ( https://rollbar.com/signup/ )
35
- 2 . ` browserify index.js > all.js `
36
- 3 . Open test.html in your browser and click the button
37
- 4 . Go to your project dashboard and see the error
35
+ 2 . ` npm install ` (if you haven't already)
36
+ 3 . ` npm run build `
37
+ 4 . Open test.html in your browser and click the button
38
+ 5 . Go to your project dashboard and see the error
38
39
39
40
![ Screenshot] ( https://raw.githubusercontent.com/rollbar/rollbar.js/master/examples/browserify/img/screenshot.png )
You can’t perform that action at this time.
0 commit comments