mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
refactor: unproxify ipc params
This commit is contained in:
@ -1,20 +1,21 @@
|
||||
'use strict';
|
||||
import { ipcRenderer } from 'electron';
|
||||
import { unproxify } from 'common/libs/unproxify';
|
||||
|
||||
export default class {
|
||||
static getViewInformations (params) {
|
||||
return ipcRenderer.invoke('get-view-informations', params);
|
||||
return ipcRenderer.invoke('get-view-informations', unproxify(params));
|
||||
}
|
||||
|
||||
static dropView (params) {
|
||||
return ipcRenderer.invoke('drop-view', params);
|
||||
return ipcRenderer.invoke('drop-view', unproxify(params));
|
||||
}
|
||||
|
||||
static alterView (params) {
|
||||
return ipcRenderer.invoke('alter-view', params);
|
||||
return ipcRenderer.invoke('alter-view', unproxify(params));
|
||||
}
|
||||
|
||||
static createView (params) {
|
||||
return ipcRenderer.invoke('create-view', params);
|
||||
return ipcRenderer.invoke('create-view', unproxify(params));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user