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

Commit

Permalink
fix(webview): fixed user agent cleanup
Browse files Browse the repository at this point in the history
in development mode/branch is a version extension which was not noticed by regex
  • Loading branch information
herteleo committed Apr 19, 2019
1 parent 77d6279 commit 575650f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.js
Expand Up @@ -49,7 +49,7 @@ function createMainWindow() {
// https://github.com/ramboxapp/community-edition/issues/1981
// https://github.com/meetfranz/franz/issues/1185
// https://github.com/meetfranz/franz/issues/1138
const removeUserAgents = `(Electron|${pkg.name}|${pkg.productName})/([0-9.]+) `;
const removeUserAgents = `(Electron|${pkg.name}|${pkg.productName})/([0-9a-z-.]+) `;
window.webContents.setUserAgent(window.webContents.getUserAgent().replace(new RegExp(removeUserAgents, 'g'), ''));

if (isDevelopment) {
Expand Down

0 comments on commit 575650f

Please sign in to comment.