Initial commit
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
export class WindowApiConst {
|
||||
/** Channel used by the renderer process to send data to the main process */
|
||||
public static readonly MULTIPLES_INPUT = 'getMultiplesInput';
|
||||
public static readonly FILELIST_INPUT = 'getFileListInput';
|
||||
public static readonly FILELIST_OUTPUT = 'getFileListOutput';
|
||||
|
||||
/** Channel used by the renderer process to receive data from the main process */
|
||||
public static readonly MULTIPLES_OUTPUT = 'getMultiplesOutput';
|
||||
public static readonly PROJECT_INPUT = 'getProjectInput';
|
||||
public static readonly PROJECT_OUTPUT = 'getProjectOutput';
|
||||
|
||||
public static readonly PRINT_OUTPUT = 'getPrintOutput';
|
||||
public static readonly PRINT_INPUT = 'getPrintInput';
|
||||
|
||||
/** Whitelist of the safe channels to use when sending data to the main process */
|
||||
public static readonly SENDING_SAFE_CHANNELS = [
|
||||
WindowApiConst.MULTIPLES_INPUT,
|
||||
WindowApiConst.FILELIST_INPUT,
|
||||
WindowApiConst.PROJECT_INPUT,
|
||||
WindowApiConst.PRINT_INPUT,
|
||||
];
|
||||
|
||||
/** Whitelist of the safe channels to use when receiving data from the main process */
|
||||
public static readonly RECEIVING_SAFE_CHANNELS = [
|
||||
WindowApiConst.MULTIPLES_OUTPUT,
|
||||
WindowApiConst.FILELIST_OUTPUT,
|
||||
WindowApiConst.PROJECT_OUTPUT,
|
||||
WindowApiConst.PROJECT_OUTPUT,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user