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 331 . Require and initialize the Rollbar javascript module:
44
55``` js
6- // npm install --save rollbar-browser
7- var rollbar = require (' rollbar-browser ' );
6+ // npm install --save rollbar
7+ var rollbar = require (' rollbar' );
88
99var rollbarConfig = {
1010 accessToken: ' POST_CLIENT_ITEM_ACCESS_TOKEN' ,
3232
33331 . Edit index.js and add your Rollbar ` POST_CLIENT_ITEM_ACCESS_TOKEN `
3434 - 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
3839
3940![ 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