Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
feat: add modified fallback user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Sep 13, 2022
1 parent dbeae56 commit 9640d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/background/create-main-window.js
Expand Up @@ -42,6 +42,7 @@ export const createMainWindow = () => {
// https://github.com/meetfranz/franz/issues/1138
const removeUserAgents = `(Electron|${pkg.name}|${pkg.productName})/([0-9a-z-.]+) `;
window.webContents.userAgent = (window.webContents.userAgent.replace(new RegExp(removeUserAgents, 'g'), ''));
app.userAgentFallback = (app.userAgentFallback.replace(new RegExp(removeUserAgents, 'g'), ''));

if (isDevelopment) {
// Load the url of the dev server if in development mode
Expand Down

0 comments on commit 9640d18

Please sign in to comment.