Update solid.js
Browse files
solid.js
CHANGED
|
@@ -93,10 +93,10 @@ async function searchTorrents(searchQuery) {
|
|
| 93 |
try {
|
| 94 |
const browser = await puppeteer.launch({
|
| 95 |
executablePath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
|
| 96 |
-
|
| 97 |
-
headless:
|
| 98 |
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
| 99 |
-
});
|
| 100 |
const page = await browser.newPage();
|
| 101 |
|
| 102 |
await page.goto(`${SITE_CONFIG.baseUrl}/search?q=${encodeURIComponent(searchQuery)}`, {
|
|
|
|
| 93 |
try {
|
| 94 |
const browser = await puppeteer.launch({
|
| 95 |
executablePath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
|
| 96 |
+
// Ensure this path is correct
|
| 97 |
+
headless: 'new', // Use 'new' mode for better compatibility
|
| 98 |
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
| 99 |
+
}););
|
| 100 |
const page = await browser.newPage();
|
| 101 |
|
| 102 |
await page.goto(`${SITE_CONFIG.baseUrl}/search?q=${encodeURIComponent(searchQuery)}`, {
|