mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 15:45:39 +01:00
Remove use of __dirname from main process
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
@@ -5,13 +5,7 @@ import { nativeImage } from 'electron';
|
||||
import type { NativeImage } from 'electron';
|
||||
import { join } from 'node:path';
|
||||
|
||||
export function getAppErrorIcon(): NativeImage {
|
||||
const iconPath = join(
|
||||
__dirname,
|
||||
'..',
|
||||
'..',
|
||||
'images',
|
||||
'app-icon-with-error.png'
|
||||
);
|
||||
export function getAppErrorIcon(rootDir: string): NativeImage {
|
||||
const iconPath = join(rootDir, 'images', 'app-icon-with-error.png');
|
||||
return nativeImage.createFromPath(iconPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user