aboutsummaryrefslogtreecommitdiff
path: root/src/patcher.ts
diff options
context:
space:
mode:
authorArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>2022-08-31 21:53:36 +0300
committerGitHub <noreply@github.com>2022-08-31 20:53:36 +0200
commitc3ff092162ef1a98bea78213e473be3207998d72 (patch)
tree96b5f04944064c7021cdd60e1b44e3bade2aacc2 /src/patcher.ts
parenta7ccbcfca4f181790b86199a7f31d1ae19e0253f (diff)
downloadVencord-c3ff092162ef1a98bea78213e473be3207998d72.tar.gz
Vencord-c3ff092162ef1a98bea78213e473be3207998d72.tar.bz2
Vencord-c3ff092162ef1a98bea78213e473be3207998d72.zip
Add nitro bypass (#4)
Diffstat (limited to 'src/patcher.ts')
-rw-r--r--src/patcher.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/patcher.ts b/src/patcher.ts
index e991377..72562f2 100644
--- a/src/patcher.ts
+++ b/src/patcher.ts
@@ -3,8 +3,10 @@ import electron, { app, BrowserWindowConstructorOptions } from "electron";
import installExt, { REACT_DEVELOPER_TOOLS } from "electron-devtools-installer";
import { join } from "path";
import { initIpc } from './ipcMain';
+import Logger from "./utils/logger";
-console.log("[Vencord] Starting up...");
+const logger = new Logger("Patcher", "#700b90")
+logger.log("[Vencord] Starting up...");
class BrowserWindow extends electron.BrowserWindow {
constructor(options: BrowserWindowConstructorOptions) {
@@ -48,8 +50,8 @@ process.env.DATA_DIR = join(app.getPath("userData"), "..", "Vencord");
electron.app.whenReady().then(() => {
installExt(REACT_DEVELOPER_TOOLS)
- .then(() => console.log("Installed React DevTools"))
- .catch((err) => console.error("Failed to install React DevTools", err));
+ .then(() => logger.log("Installed React DevTools"))
+ .catch((err) => logger.error("Failed to install React DevTools", err));
// Remove CSP
electron.session.defaultSession.webRequest.onHeadersReceived(({ responseHeaders, url }, cb) => {