Compare commits
2 Commits
v1.3.14-rc
...
785e36af08
| Author | SHA1 | Date | |
|---|---|---|---|
| 785e36af08 | |||
| d4c32476d6 |
@@ -79,10 +79,11 @@ async function main() {
|
|||||||
const consoleErrorsList: Array<{ type: string; error: string; page: string }> = [];
|
const consoleErrorsList: Array<{ type: string; error: string; page: string }> = [];
|
||||||
|
|
||||||
// Listen for unhandled exceptions natively in the page
|
// Listen for unhandled exceptions natively in the page
|
||||||
page.on('pageerror', (err: Error) => {
|
page.on('pageerror', (err: unknown) => {
|
||||||
|
const errorMessage = err instanceof Error ? err.message : String(err);
|
||||||
consoleErrorsList.push({
|
consoleErrorsList.push({
|
||||||
type: 'PAGE_ERROR',
|
type: 'PAGE_ERROR',
|
||||||
error: err.message,
|
error: errorMessage,
|
||||||
page: page.url(),
|
page: page.url(),
|
||||||
});
|
});
|
||||||
hasConsoleErrors = true;
|
hasConsoleErrors = true;
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ async function main() {
|
|||||||
baseConfig = JSON.parse(fs.readFileSync(baseConfigPath, 'utf8'));
|
baseConfig = JSON.parse(fs.readFileSync(baseConfigPath, 'utf8'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract domain for cookie
|
// Extract domain for cookie (not currently used)
|
||||||
const urlObj = new URL(targetUrl);
|
// const urlObj = new URL(targetUrl);
|
||||||
// domain is not used, so remove or keep if needed later? Linter says unused.
|
// domain is not used, so remove or keep if needed later? Linter says unused.
|
||||||
// const domain = urlObj.hostname;
|
// const domain = urlObj.hostname;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user