@@ -21,7 +21,7 @@ await Exceptionless.startup((c) => {
2121 c .setUserIdentity (" 12345678" , " Blake" );
2222
2323 // set some default data
24- c .defaultData [" mydata" ] = {
24+ c .defaultData [" mydata" ] = {
2525 myGreeting: " Hello World"
2626 };
2727
@@ -76,30 +76,30 @@ Use one of the following methods to install Exceptionless into your browser appl
7676
7777##### CDN
7878
79- Add the following script tag at the very beginning of your page:
79+ Add the following script tag at the very beginning of your page:
8080
81- ``` html
81+ ``` html
8282<script type =" module" >
8383 import { Exceptionless } from " https://unpkg.com/@exceptionless/browser" ;
8484
8585 await Exceptionless .startup ((c ) => {
8686 c .apiKey = " API_KEY_HERE" ;
8787 });
8888 </script >
89- ```
89+ ```
9090
9191##### npm
9292
93- 1 . Install the package by running ` npm install @exceptionless/browser --save ` .
94- 2 . Import Exceptionless and call startup during app startup.
93+ 1 . Install the package by running ` npm install @exceptionless/browser --save ` .
94+ 2 . Import Exceptionless and call startup during app startup.
9595
96- ``` js
97- import { Exceptionless } from " @exceptionless/browser" ;
96+ ``` js
97+ import { Exceptionless } from " @exceptionless/browser" ;
9898
99- await Exceptionless .startup ((c ) => {
100- c .apiKey = " API_KEY_HERE" ;
101- });
102- ```
99+ await Exceptionless .startup ((c ) => {
100+ c .apiKey = " API_KEY_HERE" ;
101+ });
102+ ```
103103
104104#### Node.js
105105
@@ -108,13 +108,13 @@ Use this method to install Exceptionless into your Node application:
1081081 . Install the package by running ` npm install @exceptionless/node --save ` .
1091092 . Import the Exceptionless module in your application:
110110
111- ``` js
112- import { Exceptionless } from " @exceptionless/node" ;
111+ ``` js
112+ import { Exceptionless } from " @exceptionless/node" ;
113113
114- await Exceptionless .startup ((c ) => {
115- c .apiKey = " API_KEY_HERE" ;
116- });
117- ```
114+ await Exceptionless .startup ((c ) => {
115+ c .apiKey = " API_KEY_HERE" ;
116+ });
117+ ```
118118
119119### Configuring the client
120120
@@ -248,28 +248,28 @@ If you find a bug or want to contribute a feature, feel free to create a pull re
248248
2492491 . Clone this repository:
250250
251- ``` sh
252- git clone https://github.com/exceptionless/Exceptionless.JavaScript.git
253- ```
251+ ``` sh
252+ git clone https://github.com/exceptionless/Exceptionless.JavaScript.git
253+ ```
254254
2552552 . Install [ Node.js] ( https://nodejs.org ) . Node is used for building and testing purposes.
2562563 . Install the development dependencies using [ npm] ( https://www.npmjs.com ) .
257257
258- ` ` ` sh
259- npm install
260- ` ` `
258+ ``` sh
259+ npm install
260+ ```
261261
2622624 . Build the project by running the following command.
263263
264- ` ` ` sh
265- npm run build
266- ` ` `
264+ ``` sh
265+ npm run build
266+ ```
267267
2682685 . Test the project by running the following command.
269269
270- ` ` ` sh
271- npm test
272- ` ` `
270+ ``` sh
271+ npm test
272+ ```
273273
274274## Thanks
275275
0 commit comments