Skip to content

Commit 6a6656b

Browse files
fix: security
1 parent 658d8d8 commit 6a6656b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/source/tests/page-recipe/oauth-page-recipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class OauthPageRecipe extends PageRecipe {
2424
return e.message.includes('Navigating frame was detached');
2525
}
2626
// Fallback: convert to string and check (for non-Error objects)
27-
const errorStr = String(e);
27+
const errorStr = e.toString();
2828
return errorStr.includes('Navigating frame was detached') || errorStr.includes('frame was detached');
2929
}
3030

0 commit comments

Comments
 (0)