Skip to content

Commit

Permalink
Removed ChromeOS useragent
Browse files Browse the repository at this point in the history
This is from Times where the web-version from GeForce NOW was ChromeOS only. Meanwhile it supports Linux too, so the useragent string only create problems
  • Loading branch information
SoftwareRat authored Feb 18, 2021
1 parent 9918a6e commit 31cfcd1
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 31cfcd1

Please sign in to comment.