Skip to content

Commit c5a4724

Browse files
committed
Hide stack frames from raven.js
normalizeFrame() no not only hides stack frames from raven.min.js, but also from raven.js. This is useful if the uncompressed script is used in a development environment.
1 parent e30d4e6 commit c5a4724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function normalizeFrame(frame) {
454454
// Now we check for fun, if the function name is Raven or TraceKit
455455
/(Raven|TraceKit)\./.test(normalized['function']) ||
456456
// finally, we do a last ditch effort and check for raven.min.js
457-
/raven\.(min\.)js$/.test(normalized.filename)
457+
/raven\.(min\.)?js$/.test(normalized.filename)
458458
);
459459

460460
return normalized;

0 commit comments

Comments
 (0)