Skip to content

Commit

Permalink
Merge pull request #36 from SoftwareRat/patch-1
Browse files Browse the repository at this point in the history
Removed ChromeOS useragent
  • Loading branch information
hmlendea authored Feb 21, 2021
2 parents 9918a6e + 31cfcd1 commit 47fe7c3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const {app, globalShortcut, BrowserWindow} = require('electron');
const path = require('path');
const userAgent = 'Mozilla/5.0 (X11; CrOS x86_64 13099.85.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.110 Safari/537.36';

var isFullScreen = false;

Expand Down Expand Up @@ -38,7 +37,6 @@ app.whenReady().then(() => {
app.on('browser-window-created', function(e, window) {
window.setBackgroundColor('#1A1D1F');
window.setMenu(null);
window.webContents.setUserAgent(userAgent);

window.on('leave-full-screen', function(e, win) {
if (isFullScreen) {
Expand Down

0 comments on commit 47fe7c3

Please sign in to comment.