Spaces:
Paused
Paused
and
commited on
Commit
·
96ca549
1
Parent(s):
495f8f5
index.mjs
CHANGED
|
@@ -122,7 +122,9 @@ async function evaluate(url, code) {
|
|
| 122 |
await locks.request('playwright_browser', async lock => {
|
| 123 |
browser = globalThis.state.browser = await chromium.launch();
|
| 124 |
context = globalThis.state.context = await browser.newContext({
|
| 125 |
-
|
|
|
|
|
|
|
| 126 |
}/*devices['iPhone 11']*/);
|
| 127 |
});
|
| 128 |
}
|
|
|
|
| 122 |
await locks.request('playwright_browser', async lock => {
|
| 123 |
browser = globalThis.state.browser = await chromium.launch();
|
| 124 |
context = globalThis.state.context = await browser.newContext({
|
| 125 |
+
javaScriptEnabled: true,
|
| 126 |
+
args: ['--disable-web-security'] //https://github.com/microsoft/playwright/issues/17631
|
| 127 |
+
bypassCSP: true,
|
| 128 |
}/*devices['iPhone 11']*/);
|
| 129 |
});
|
| 130 |
}
|