Remove use of __dirname from main process

This commit is contained in:
Fedor Indutny
2026-03-27 10:55:37 -07:00
committed by GitHub
parent 70f111e868
commit a048f83dbc
39 changed files with 222 additions and 337 deletions

View File

@@ -11,7 +11,6 @@ import lodash from 'lodash';
import type { ExtendedStorageID } from '../types/StorageService.d.ts';
import type { ConversationModel } from '../models/conversations.preload.js';
export const APP_ROOT_PATH = path.join(__dirname, '..', '..');
const { escapeRegExp, isString, isRegExp } = lodash;
const { compose } = lodashFp;
@@ -232,8 +231,6 @@ export const addSensitivePath = (filePath: string): void => {
redactSensitivePaths = createRedactSensitivePaths(sensitivePaths);
};
addSensitivePath(APP_ROOT_PATH);
export const redactAll: RedactFunction = text => {
let result = text;