Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fixed #77
Browse files Browse the repository at this point in the history
  • Loading branch information
Tustin committed Feb 11, 2020
1 parent 89ef26a commit c457fc1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const supportedGames = require('./SupportedGames');

const store = new _store();

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';
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';

const logoIcon = nativeImage.createFromPath(path.join(__dirname, '../assets/images/logo.png'));

Expand Down Expand Up @@ -95,9 +95,10 @@ function spawnLoginWindow() : void
minWidth: 414,
minHeight: 763,
icon: logoIcon,
title: 'PlayStation Login',
webPreferences: {
nodeIntegration: false
nodeIntegration: false,
enableRemoteModule: false,
plugins: true
}
});

Expand All @@ -107,7 +108,9 @@ function spawnLoginWindow() : void
loginWindow = null;
});

loginWindow.loadURL(sonyLoginUrl);
loginWindow.loadURL(sonyLoginUrl, {
userAgent: 'Mozilla/5.0'
});

loginWindow.webContents.on('did-finish-load', () => {
const browserUrl : string = loginWindow.webContents.getURL();
Expand Down

0 comments on commit c457fc1

Please sign in to comment.