This repository was archived by the owner on Feb 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const supportedGames = require('./SupportedGames');
2424
2525const store = new _store ( ) ;
2626
27- const sonyLoginUrl : string = 'https://id.sonyentertainmentnetwork.com/signin/?service_entity=urn:service-entity:psn&response_type=code&client_id=ba495a24-818c-472b-b12d-ff231c1b5745&redirect_uri=https://remoteplay.dl.playstation.net/remoteplay/redirect&scope=psn:clientapp&request_locale=en_US&ui=pr&service_logo=ps&layout_type=popup&smcid=remoteplay&PlatformPrivacyWs1=exempt&error=login_required&error_code=4165&error_description=User+is+not+authenticated#/signin?entry=%2Fsignin ' ;
27+ const sonyLoginUrl : string = 'https://id.sonyentertainmentnetwork.com/signin/?service_entity=urn:service-entity:psn&response_type=code&client_id=ba495a24-818c-472b-b12d-ff231c1b5745&redirect_uri=https://remoteplay.dl.playstation.net/remoteplay/redirect&scope=psn:clientapp&request_locale=en_US&ui=pr&service_logo=ps&layout_type=popup&smcid=remoteplay&PlatformPrivacyWs1=exempt&error=login_required&error_code=4165&error_description=User+is+not+authenticated&no_captcha=false ' ;
2828
2929const logoIcon = nativeImage . createFromPath ( path . join ( __dirname , '../assets/images/logo.png' ) ) ;
3030
@@ -95,9 +95,10 @@ function spawnLoginWindow() : void
9595 minWidth : 414 ,
9696 minHeight : 763 ,
9797 icon : logoIcon ,
98- title : 'PlayStation Login' ,
9998 webPreferences : {
100- nodeIntegration : false
99+ nodeIntegration : false ,
100+ enableRemoteModule : false ,
101+ plugins : true
101102 }
102103 } ) ;
103104
@@ -107,7 +108,9 @@ function spawnLoginWindow() : void
107108 loginWindow = null ;
108109 } ) ;
109110
110- loginWindow . loadURL ( sonyLoginUrl ) ;
111+ loginWindow . loadURL ( sonyLoginUrl , {
112+ userAgent : 'Mozilla/5.0'
113+ } ) ;
111114
112115 loginWindow . webContents . on ( 'did-finish-load' , ( ) => {
113116 const browserUrl : string = loginWindow . webContents . getURL ( ) ;
You can’t perform that action at this time.
0 commit comments