mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
Cleanup
This commit is contained in:
parent
48781c6b34
commit
d0f307cc72
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user