next-ucap-messenger/electron-projects/ucap-webmessenger-electron-update-window/src/lib/models/electron-update-window-options.ts

23 lines
538 B
TypeScript

import { BrowserWindowConstructorOptions } from 'electron';
export interface ElectronUpdateWindowOptions
extends BrowserWindowConstructorOptions {
templatePath?: string;
onReady?: () => void;
onAcceptUpdate?: () => void;
onDenyUpdate?: () => void;
onCancelDownload?: () => void;
}
export const DefaultElectronUpdateWindowOptions: ElectronUpdateWindowOptions = {
width: 500,
height: 160,
frame: false,
skipTaskbar: true,
alwaysOnTop: true,
maximizable: false,
webPreferences: {
nodeIntegration: true
}
};