lbry-desktop/src/renderer/native.js
2018-04-18 00:13:00 -04:00

15 lines
373 B
JavaScript

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;