Skip to content

Commit 04b4e72

Browse files
authored
Fix browserify example to use modern rollbar package (#1251)
1 parent ad273fd commit 04b4e72

File tree

5 files changed

+15
-26
lines changed

5 files changed

+15
-26
lines changed

examples/browserify/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Generated browserify bundle
2+
all.js

examples/browserify/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
1. 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

99
var rollbarConfig = {
1010
accessToken: 'POST_CLIENT_ITEM_ACCESS_TOKEN',
@@ -32,8 +32,9 @@ try {
3232

3333
1. 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)

0 commit comments

Comments
 (0)