3
3
// Error Handling using: crashReporter (https://electronjs.org/docs/api/crash-reporter)
4
4
// ----------------------------------------------------------------------------
5
5
//
6
- const { crashReporter } = require ( " electron" ) ;
6
+ const { crashReporter } = require ( ' electron' )
7
7
crashReporter . start ( {
8
- productName : " ttth" ,
9
- companyName : " yafp" ,
10
- submitURL : " https://sentry.io/api/1757940/minidump/?sentry_key=bbaa8fa09ca84a8da6a545c04d086859" ,
11
- uploadToServer : false
12
- } ) ;
8
+ productName : ' ttth' ,
9
+ companyName : ' yafp' ,
10
+ submitURL : ' https://sentry.io/api/1757940/minidump/?sentry_key=bbaa8fa09ca84a8da6a545c04d086859' ,
11
+ uploadToServer : false
12
+ } )
13
13
// To simulate a crash - execute: process.crash();
14
14
15
15
// ----------------------------------------------------------------------------
@@ -19,19 +19,19 @@ crashReporter.start({
19
19
// https://sentry.io/organizations/yafp/
20
20
// https://docs.sentry.io/platforms/javascript/electron/
21
21
//
22
- const Sentry = require ( " @sentry/electron" ) ;
22
+ const Sentry = require ( ' @sentry/electron' )
23
23
Sentry . init ( {
24
- dsn :
" https://[email protected] /1757940"
25
- } ) ;
24
+ dsn :
' https://[email protected] /1757940'
25
+ } )
26
26
//
27
27
// simple way to force a crash:
28
- //myUndefinedFunction();
28
+ // myUndefinedFunction();
29
29
30
- Sentry . captureMessage ( " Init" ) ;
30
+ Sentry . captureMessage ( ' Init' )
31
31
32
32
// ----------------------------------------------------------------------------
33
33
// Error Handling using: electron-unhandled (https://github.com/sindresorhus/electron-unhandled)
34
34
// ----------------------------------------------------------------------------
35
35
//
36
- //const unhandled = require("electron-unhandled");
37
- //unhandled();
36
+ // const unhandled = require("electron-unhandled");
37
+ // unhandled();
0 commit comments