Revert patcher to console.log
This commit is contained in:
parent
f60ccb766f
commit
b2f762fda8
|
@ -3,10 +3,8 @@ import electron, { app, BrowserWindowConstructorOptions } from "electron";
|
||||||
import installExt, { REACT_DEVELOPER_TOOLS } from "electron-devtools-installer";
|
import installExt, { REACT_DEVELOPER_TOOLS } from "electron-devtools-installer";
|
||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
import { initIpc } from './ipcMain';
|
import { initIpc } from './ipcMain';
|
||||||
import Logger from "./utils/logger";
|
|
||||||
|
|
||||||
const logger = new Logger("Patcher", "#700b90")
|
console.log("[Vencord] Starting up...");
|
||||||
logger.log("[Vencord] Starting up...");
|
|
||||||
|
|
||||||
class BrowserWindow extends electron.BrowserWindow {
|
class BrowserWindow extends electron.BrowserWindow {
|
||||||
constructor(options: BrowserWindowConstructorOptions) {
|
constructor(options: BrowserWindowConstructorOptions) {
|
||||||
|
@ -50,8 +48,8 @@ process.env.DATA_DIR = join(app.getPath("userData"), "..", "Vencord");
|
||||||
|
|
||||||
electron.app.whenReady().then(() => {
|
electron.app.whenReady().then(() => {
|
||||||
installExt(REACT_DEVELOPER_TOOLS)
|
installExt(REACT_DEVELOPER_TOOLS)
|
||||||
.then(() => logger.log("Installed React DevTools"))
|
.then(() => console.info("Installed React DevTools"))
|
||||||
.catch((err) => logger.error("Failed to install React DevTools", err));
|
.catch((err) => console.error("Failed to install React DevTools", err));
|
||||||
|
|
||||||
// Remove CSP
|
// Remove CSP
|
||||||
electron.session.defaultSession.webRequest.onHeadersReceived(({ responseHeaders, url }, cb) => {
|
electron.session.defaultSession.webRequest.onHeadersReceived(({ responseHeaders, url }, cb) => {
|
||||||
|
|
Loading…
Reference in a new issue