23 lines
538 B
TypeScript
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
|
||
|
}
|
||
|
};
|