Files
Desktop/ts/util/getAppErrorIcon.node.ts
Fedor Indutny 44076ece79 Rename files
2025-10-16 23:45:44 -07:00

18 lines
410 B
TypeScript

// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
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'
);
return nativeImage.createFromPath(iconPath);
}