fix electron
This commit is contained in:
parent
939c59655f
commit
3a287ee05e
|
@ -16,11 +16,11 @@ function createWindow() {
|
|||
title: "Sengi",
|
||||
backgroundColor: "#131925",
|
||||
useContentSize: true,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
nodeIntegration: false,
|
||||
nodeIntegrationInWorker: false
|
||||
}
|
||||
// webPreferences: {
|
||||
// contextIsolation: true,
|
||||
// nodeIntegration: false,
|
||||
// nodeIntegrationInWorker: false
|
||||
// }
|
||||
});
|
||||
|
||||
win.setAutoHideMenuBar(true);
|
||||
|
|
|
@ -104,12 +104,12 @@ export class AddNewAccountComponent implements OnInit {
|
|||
} else {
|
||||
let redirect_uri = this.getLocalHostname();
|
||||
|
||||
let userAgent = navigator.userAgent.toLowerCase();
|
||||
console.log(`userAgent ${userAgent}`);
|
||||
// let userAgent = navigator.userAgent.toLowerCase();
|
||||
// console.log(`userAgent ${userAgent}`);
|
||||
|
||||
if (userAgent.includes(' electron/')) {
|
||||
redirect_uri += '/register';
|
||||
}
|
||||
// if (userAgent.includes(' electron/')) {
|
||||
// redirect_uri += '/register';
|
||||
// }
|
||||
|
||||
return this.authService.createNewApplication(instance, 'Sengi', redirect_uri, 'read write follow', 'https://nicolasconstant.github.io/sengi/')
|
||||
.then((appData: AppData) => {
|
||||
|
|
Loading…
Reference in New Issue