mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
Cleanup
This commit is contained in:
parent
48781c6b34
commit
d0f307cc72
@ -2075,7 +2075,9 @@ export class WindowHandler {
|
|||||||
let userAgent = mainWindow.webContents.getUserAgent();
|
let userAgent = mainWindow.webContents.getUserAgent();
|
||||||
if (doOverrideUserAgents) {
|
if (doOverrideUserAgents) {
|
||||||
const electronUserAgentRegex = /(Electron[0-9\/.]*)/;
|
const electronUserAgentRegex = /(Electron[0-9\/.]*)/;
|
||||||
userAgent = userAgent.replace(electronUserAgentRegex, '');
|
userAgent = userAgent
|
||||||
|
.replace(electronUserAgentRegex, '')
|
||||||
|
.replace(' ', ' ');
|
||||||
}
|
}
|
||||||
return userAgent;
|
return userAgent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user