Skip to content

Commit fef6229

Browse files
committed
WIP
1 parent a80591b commit fef6229

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+834
-1020
lines changed

packages/desktop/electron/electronApi.js

-325
This file was deleted.

packages/desktop/electron/lib/aboutPreload.js

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { ipcRenderer } from 'electron'
2+
import { MenuEvent } from '../menu'
3+
import { version, productName } from '../../../package.json'
4+
5+
const AboutApi = {
6+
getData(): void {
7+
void ipcRenderer.invoke(MenuEvent.Data).then((data) => ({
8+
appName: productName,
9+
version: data.strings.version.replace('{version}', version),
10+
iconPath: `./assets/logos/darkmode/${process.env.STAGE}_firefly_logo.svg`,
11+
}))
12+
},
13+
}
14+
15+
export default AboutApi

0 commit comments

Comments
 (0)