gm-plugkit 2.0.1292 → 2.0.1293
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugkit-wasm-wrapper.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1293",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/plugkit-wasm-wrapper.js
CHANGED
|
@@ -709,7 +709,9 @@ function findInstalledChromiumBinary() {
|
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
function startManagedBrowser(pw, profileDir) {
|
|
712
|
-
const
|
|
712
|
+
const headless = process.env.GM_BROWSER_HEADLESS === '1';
|
|
713
|
+
const args = [...pw.baseArgs, 'browser', 'start', '--user-data-dir', profileDir];
|
|
714
|
+
if (headless) args.push('--headless');
|
|
713
715
|
const env = { ...process.env };
|
|
714
716
|
if (!env.GM_BROWSER_RUNNER_PATH && !env.PLAYWRITER_BROWSER_PATH) {
|
|
715
717
|
const browserBin = findInstalledChromiumBinary();
|