Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.

Commit 6fc66f8

Browse files
committed
Merge pull request #25 from lukebayes/patch-1
Only clobber global.console if it's not already there.
2 parents 99278f2 + 06c6c5e commit 6fc66f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
// Make it safe to do console.log() always.
44
(function(global) {
55
'use strict';
6-
global.console = global.console || {};
6+
if (!global.console) {
7+
global.console = {};
8+
}
79
var con = global.console;
810
var prop, method;
911
var dummy = function() {};

0 commit comments

Comments
 (0)