2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-08 23:42:20 +00:00
nativefier/src/options/model.ts
Adam Weeden f6e1ebd876
Fix Widevine by properly listening to widevine-... events, and update docs (fix #1153) (PR #1164)
As documented in #1153, for Widevine support to work properly, we need to listen for the Widevine ready event, and as well for certain sites the app must be signed.

This PR adds the events, and as well adds better documentation on the signing limitation.

This may also help resolve #1147
2021-04-29 13:27:55 -04:00

71 lines
1.7 KiB
TypeScript

import * as electronPackager from 'electron-packager';
export interface ElectronPackagerOptions extends electronPackager.Options {
targetUrl: string;
platform: string;
upgrade: boolean;
upgradeFrom?: string;
}
export interface AppOptions {
packager: ElectronPackagerOptions;
nativefier: {
accessibilityPrompt: boolean;
alwaysOnTop: boolean;
backgroundColor: string;
basicAuthPassword: string;
basicAuthUsername: string;
bookmarksMenu: string;
bounce: boolean;
browserwindowOptions: any;
clearCache: boolean;
counter: boolean;
crashReporter: string;
disableContextMenu: boolean;
disableDevTools: boolean;
disableGpu: boolean;
disableOldBuildWarning: boolean;
diskCacheSize: number;
electronVersionUsed?: string;
enableEs3Apis: boolean;
fastQuit: boolean;
fileDownloadOptions: any;
flashPluginDir: string;
fullScreen: boolean;
globalShortcuts: any;
hideWindowFrame: boolean;
ignoreCertificate: boolean;
ignoreGpuBlacklist: boolean;
inject: string[];
insecure: boolean;
internalUrls: string;
blockExternalUrls: boolean;
maximize: boolean;
nativefierVersion: string;
processEnvs: string;
proxyRules: string;
showMenuBar: boolean;
singleInstance: boolean;
titleBarStyle: string;
tray: string | boolean;
userAgent: string;
userAgentOverriden: boolean;
verbose: boolean;
versionString: string;
width: number;
widevine: boolean;
height: number;
minWidth: number;
minHeight: number;
maxWidth: number;
maxHeight: number;
x: number;
y: number;
zoom: number;
};
}
export type NativefierOptions = Partial<
AppOptions['packager'] & AppOptions['nativefier']
>;