lbry-desktop/src/renderer/native.js

16 lines
373 B
JavaScript
Raw Normal View History

2018-04-18 06:03:01 +02:00
import { ipcRenderer } from 'electron';
const Native = {};
Native.getAppVersionInfo = () =>
new Promise(resolve => {
ipcRenderer.once('version-info-received', (event, versionInfo) => {
resolve(versionInfo);
});
ipcRenderer.send('version-info-requested');
});
Native.imagePath = file => `${staticResourcesPath}/img/${file}`;
export default Native;