2020-12-18 18:44:32 +01:00
|
|
|
'use strict';
|
|
|
|
import { ipcRenderer } from 'electron';
|
2022-04-24 12:17:29 +02:00
|
|
|
import { unproxify } from '../libs/unproxify';
|
2020-12-18 18:44:32 +01:00
|
|
|
|
|
|
|
export default class {
|
|
|
|
static getKey (params) {
|
2022-04-24 12:17:29 +02:00
|
|
|
return ipcRenderer.sendSync('get-key', unproxify(params));
|
2020-12-18 18:44:32 +01:00
|
|
|
}
|
2021-10-29 12:58:37 +02:00
|
|
|
|
|
|
|
static showOpenDialog (options) {
|
2022-04-24 12:17:29 +02:00
|
|
|
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');
|
|
|
|
}
|
2020-12-18 18:44:32 +01:00
|
|
|
}
|