Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -268,10 +268,7 @@ app.get('/ytmp3', async (req, res) => {
|
|
| 268 |
|
| 269 |
async function fetchHtml(url) {
|
| 270 |
// Launch browser dengan mode headless
|
| 271 |
-
const browser = await puppeteer.launch(
|
| 272 |
-
headless: true,
|
| 273 |
-
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
| 274 |
-
});
|
| 275 |
|
| 276 |
// Buat page baru
|
| 277 |
const page = await browser.newPage();
|
|
|
|
| 268 |
|
| 269 |
async function fetchHtml(url) {
|
| 270 |
// Launch browser dengan mode headless
|
| 271 |
+
const browser = await puppeteer.launch();
|
|
|
|
|
|
|
|
|
|
| 272 |
|
| 273 |
// Buat page baru
|
| 274 |
const page = await browser.newPage();
|