mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
Merge pull request #1238 from sbenmoussati/SDA-3210
SDA-3201 Replacing user-agent to support Calls and snipping tool
This commit is contained in:
commit
988b62f3da
@ -2074,10 +2074,8 @@ export class WindowHandler {
|
||||
const doOverrideUserAgents = !!this.globalConfig.overrideUserAgent;
|
||||
let userAgent = mainWindow.webContents.getUserAgent();
|
||||
if (doOverrideUserAgents) {
|
||||
const electronUserAgentRegex = /(Electron[0-9\/.]*)/;
|
||||
userAgent = userAgent
|
||||
.replace(electronUserAgentRegex, '')
|
||||
.replace(' ', ' ');
|
||||
const electronUserAgentRegex = /Electron/;
|
||||
userAgent = userAgent.replace(electronUserAgentRegex, 'ElectronSymphony');
|
||||
}
|
||||
return userAgent;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user