File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export class UserAgent {
8989 ] ;
9090
9191 public getString ( ) : string {
92- return this . userAgentString ;
92+ return this . userAgentString + " DofusTouch Client " + settings . getSync ( 'appVersion' ) ;
9393 }
9494
9595 private generateUserAgentString ( ) : void {
Original file line number Diff line number Diff line change 11import electron = require( 'electron' ) ;
2+ import { UserAgent } from '../core/user-agent' ;
23
34export class UpdateWindow {
45
@@ -32,6 +33,8 @@ export class UpdateWindow {
3233 enableRemoteModule : true
3334 }
3435 } ) ;
36+ let userAgent = new UserAgent ( 0 ) ;
37+ window . webContents . setUserAgent ( userAgent . getString ( ) ) ;
3538
3639 window . once ( 'ready-to-show' , ( ) => { window . show ( ) } )
3740 window . on ( 'closed' , ( ) => { window = null ; } ) ;
You can’t perform that action at this time.
0 commit comments