10 lines
360 B
TypeScript
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);
|
|
}
|