Skip to content

Commit 1b75622

Browse files
authored
drop console polyfill and IEx code from logger (#1322)
1 parent 59cc3b1 commit 1b75622

File tree

4 files changed

+3
-52
lines changed

4 files changed

+3
-52
lines changed

package-lock.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
"dependencies": {
7777
"@rrweb/record": "^2.0.0-alpha.18",
7878
"async": "~3.2.3",
79-
"console-polyfill": "0.3.0",
8079
"error-stack-parser-es": "^1.0.5",
8180
"json-stringify-safe": "~5.0.0",
8281
"lru-cache": "~2.2.1",

src/browser/detection.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/browser/logger.js

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
1-
import 'console-polyfill';
2-
import detection from './detection.js';
31
import * as _ from '../utility.js';
42

53
function error() {
64
var args = Array.prototype.slice.call(arguments, 0);
75
args.unshift('Rollbar:');
8-
if (detection.ieVersion() <= 8) {
9-
console.error(_.formatArgsAsString(args));
10-
} else {
11-
console.error.apply(console, args);
12-
}
6+
console.error.apply(console, args);
137
}
148

159
function info() {
1610
var args = Array.prototype.slice.call(arguments, 0);
1711
args.unshift('Rollbar:');
18-
if (detection.ieVersion() <= 8) {
19-
console.info(_.formatArgsAsString(args));
20-
} else {
21-
console.info.apply(console, args);
22-
}
12+
console.info.apply(console, args);
2313
}
2414

2515
function log() {
2616
var args = Array.prototype.slice.call(arguments, 0);
2717
args.unshift('Rollbar:');
28-
if (detection.ieVersion() <= 8) {
29-
console.log(_.formatArgsAsString(args));
30-
} else {
31-
console.log.apply(console, args);
32-
}
18+
console.log.apply(console, args);
3319
}
3420

3521
export default {

0 commit comments

Comments
 (0)