File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
23
23
## Usage
24
24
25
- To use this SDK, call ` init(options) ` as early as possible after loading the page. This will initialize the SDK and hook
25
+ To use this SDK, call ` Sentry. init(options)` as early as possible after loading the page. This will initialize the SDK and hook
26
26
into the environment. Note that you can turn off almost all side effects using the respective options.
27
27
28
28
``` javascript
29
- import { init } from ' @sentry/browser' ;
29
+ import * as Sentry from ' @sentry/browser' ;
30
30
31
- init ({
31
+ Sentry . init ({
32
32
dsn: ' __DSN__' ,
33
33
// ...
34
34
});
35
35
```
36
36
37
37
To set context information or send manual events, use the exported functions of ` @sentry/browser ` . Note that these
38
- functions will not perform any action before you have called ` init() ` :
38
+ functions will not perform any action before you have called ` Sentry. init()` :
39
39
40
40
``` javascript
41
41
import * as Sentry from ' @sentry/browser' ;
You can’t perform that action at this time.
0 commit comments