MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / warnSystemFallbackOnce

Function warnSystemFallbackOnce

packages/cli/src/browser/manager.ts:237–245  ·  view source on GitHub ↗
(executablePath: string)

Source from the content-addressed store, hash-verified

235 */
236let _warnedSystemFallback = false;
237function warnSystemFallbackOnce(executablePath: string): void {
238 if (_warnedSystemFallback) return;
239 if (process.platform !== "linux") return;
240 if (isHeadlessShellBinary(executablePath)) return;
241 _warnedSystemFallback = true;
242 console.warn(
243 `[hyperframes] Using system Chrome at ${executablePath}; HeadlessExperimental.beginFrame is unavailable in regular Chrome builds, so the perf-optimized capture path falls back to screenshot mode. Install chrome-headless-shell for the optimized path:\n npx @puppeteer/browsers install chrome-headless-shell\n(Or set HYPERFRAMES_BROWSER_PATH to point at an existing chrome-headless-shell binary.)`,
244 );
245}
246
247/** Test-only: reset the one-shot warn latch. */
248export function _resetSystemFallbackWarnForTests(): void {

Callers 2

findBrowserFunction · 0.85
ensureBrowserFunction · 0.85

Calls 2

isHeadlessShellBinaryFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected