mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-10-04 18:13:44 +00:00
10 lines
306 B
JavaScript
10 lines
306 B
JavaScript
import {ensureBrowser} from '@remotion/renderer';
|
|
|
|
const status = await ensureBrowser({logLevel: 'warn'});
|
|
|
|
if (status.type === 'no-browser' || status.type === 'version-mismatch') {
|
|
throw new Error(`Unable to prepare Remotion browser, status: ${status.type}`);
|
|
}
|
|
|
|
console.log(`browser: ${status.type}`);
|