Skip to content

Commit f48596e

Browse files
othreekamilogorek
authored andcommitted
ref: Use Function.prototype to call original console methods (#1658)
1 parent 56e7648 commit f48596e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/integrations/breadcrumbs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class Breadcrumbs implements Integration {
163163

164164
// this fails for some browsers. :(
165165
if (originalConsoleLevel) {
166-
originalConsoleLevel.apply(global.console, args);
166+
Function.prototype.apply.call(originalConsoleLevel, global.console, args);
167167
}
168168
};
169169
});

0 commit comments

Comments
 (0)