@ai-ecoverse/sliccy-browser 0.1.28 → 0.1.30
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 +2 -2
- package/src/browser.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/sliccy-browser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "sliccy:browser for jsh, over CDP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"src"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-ecoverse/slicc-cdp": "1.30.
|
|
32
|
+
"@ai-ecoverse/slicc-cdp": "1.30.13"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/src/browser.js
CHANGED
|
@@ -334,7 +334,10 @@ async function ensureTabNow(url, options = {}) {
|
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
const client = await openClient();
|
|
337
|
-
const created = await client.send('Target.createTarget', {
|
|
337
|
+
const created = await client.send('Target.createTarget', {
|
|
338
|
+
url: 'about:blank',
|
|
339
|
+
background: true,
|
|
340
|
+
});
|
|
338
341
|
const targetId = created?.targetId;
|
|
339
342
|
if (typeof targetId !== 'string' || targetId.length === 0) {
|
|
340
343
|
throw new Error('Target.createTarget returned no targetId');
|