Skip to content

Commit

Permalink
Update user agent to default
Browse files Browse the repository at this point in the history
It seems that, changing ua without clearing cache and cookies will
break Google auth
  • Loading branch information
sunner committed Apr 21, 2023
1 parent 79aef51 commit 0beb472
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { createProtocol } from "vue-cli-plugin-electron-builder/lib";
import installExtension, { VUEJS3_DEVTOOLS } from "electron-devtools-installer";
const isDevelopment = process.env.NODE_ENV !== "production";

// This ua is copied from https://github.com/lencx/ChatGPT
const DEFAULT_USER_AGENT =
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)";
const DEFAULT_USER_AGENT = ""; // Empty string to use the Electron default

// Scheme must be registered before the app is ready
protocol.registerSchemesAsPrivileged([
Expand Down

0 comments on commit 0beb472

Please sign in to comment.