gluon/firefox: make dependency optional
This commit is contained in:
parent
40f43a1018
commit
8b56baab14
@ -1,7 +1,13 @@
|
|||||||
import { mkdir, writeFile } from 'fs/promises';
|
import { mkdir, writeFile } from 'fs/promises';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { spawn } from 'child_process';
|
import { spawn } from 'child_process';
|
||||||
import CDP from 'chrome-remote-interface';
|
|
||||||
|
let CDP;
|
||||||
|
try {
|
||||||
|
CDP = await import('chrome-remote-interface');
|
||||||
|
} catch {
|
||||||
|
console.warn('Dependencies for Firefox are not installed!');
|
||||||
|
}
|
||||||
|
|
||||||
import makeIPCApi from './ipc.js';
|
import makeIPCApi from './ipc.js';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user