antares/src/renderer/ipc-api/Application.js

18 lines
445 B
JavaScript
Raw Normal View History

'use strict';
import { ipcRenderer } from 'electron';
import { unproxify } from '../libs/unproxify';
export default class {
static getKey (params) {
return ipcRenderer.sendSync('get-key', unproxify(params));
}
2021-10-29 12:58:37 +02:00
static showOpenDialog (options) {
return ipcRenderer.invoke('show-open-dialog', unproxify(options));
2021-10-29 12:58:37 +02:00
}
static getDownloadPathDirectory () {
return ipcRenderer.invoke('get-download-dir-path');
}
}