We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17f1b20 commit 64a2940Copy full SHA for 64a2940
browser_patches/webkit/concat_protocol.js
@@ -1,6 +1,7 @@
1
const fs = require('fs');
2
const path = require('path');
3
-const protocolDir = path.join(__dirname, './checkout/Source/JavaScriptCore/inspector/protocol');
+const checkoutPath = process.env.WK_CHECKOUT_PATH || path.join(__dirname, 'checkout');
4
+const protocolDir = path.join(checkoutPath, './Source/JavaScriptCore/inspector/protocol');
5
const files = fs.readdirSync(protocolDir).filter(f => f.endsWith('.json')).map(f => path.join(protocolDir, f));
6
const json = files.map(file => JSON.parse(fs.readFileSync(file)));
7
console.log(JSON.stringify(json));
0 commit comments