From d0f307cc729cb0c3e69046e07c354e743721f539 Mon Sep 17 00:00:00 2001 From: sbenmoussati <51402489+sbenmoussati@users.noreply.github.com> Date: Tue, 8 Jun 2021 19:05:53 +0200 Subject: [PATCH] Cleanup --- src/app/window-handler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index 50eb0ab8..b4760392 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -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; }