File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,7 @@ function ElectronWelcomePage() {
40
40
< span className = 'lead' >
41
41
Please login using a web browser
42
42
</ span >
43
- < a
44
- className = 'link-primary'
45
- onClick = { openBrowser }
46
- href = "#"
47
- >
43
+ < a className = 'link-primary' target = '_blank' href = { browserUrl } rel = "noreferrer" >
48
44
Browser didn't open? Click here!
49
45
</ a >
50
46
</ >
@@ -65,7 +61,7 @@ function ElectronWelcomePage() {
65
61
66
62
function openBrowser ( ) {
67
63
setBrowserOpened ( true ) ;
68
- window . open ( browserUrl ) ;
64
+ window . open ( browserUrl , '_blank' ) ;
69
65
}
70
66
}
71
67
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ class DokChatDesktop {
80
80
}
81
81
} ) ;
82
82
83
- this . mainWindow . webContents . setWindowOpenHandler ( ( details ) => {
84
- shell . openExternal ( details . url ) ;
83
+ this . mainWindow . webContents . setWindowOpenHandler ( ( { url } ) => {
84
+ shell . openExternal ( url ) . catch ( ( e ) => log . error ( 'Failed to open url' , e ) ) ;
85
85
return { action : 'deny' } ;
86
86
} ) ;
87
87
You can’t perform that action at this time.
0 commit comments