chore: delete unused get-env-var functions

This commit is contained in:
Fazri Gading
2026-01-25 15:31:29 +08:00
parent de9c7d81f5
commit 2f767f191e
4 changed files with 2 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
const path = require('path');
require('dotenv').config({ path: path.join(__dirname, '.env') });
const { app, BrowserWindow, ipcMain, dialog, shell } = require('electron');
const { autoUpdater } = require('electron-updater');
const fs = require('fs');
@@ -931,10 +930,6 @@ ipcMain.handle('get-local-app-data', async () => {
return process.env.LOCALAPPDATA || path.join(os.homedir(), 'AppData', 'Local');
});
ipcMain.handle('get-env-var', async (event, key) => {
return process.env[key];
});
ipcMain.handle('get-user-id', async () => {
try {
const { getOrCreatePlayerId } = require('./backend/launcher');