This commit is contained in:
sbenmoussati 2021-06-08 19:05:53 +02:00
parent 48781c6b34
commit d0f307cc72

View File

@ -2075,7 +2075,9 @@ export class WindowHandler {
let userAgent = mainWindow.webContents.getUserAgent();
if (doOverrideUserAgents) {
const electronUserAgentRegex = /(Electron[0-9\/.]*)/;
userAgent = userAgent.replace(electronUserAgentRegex, '');
userAgent = userAgent
.replace(electronUserAgentRegex, '')
.replace(' ', ' ');
}
return userAgent;
}