Files
dbx/apps/desktop/src/lib/app/windowsWebView2RuntimePolicy.ts
T

10 lines
360 B
TypeScript

export interface WindowsWebView2RuntimeFallbackInput {
installerExitCode: number;
runtimeDetected: boolean;
runtimeMeetsMinimum: boolean;
}
export function shouldAbortWindowsWebView2RuntimeFallback(input: WindowsWebView2RuntimeFallbackInput): boolean {
return input.installerExitCode !== 0 && (!input.runtimeDetected || !input.runtimeMeetsMinimum);
}