mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
#271 one liner fix error while assigning console
This commit is contained in:
parent
2317a54d45
commit
86a5abd550
2
gun.js
2
gun.js
@ -6,7 +6,7 @@
|
||||
if(typeof window !== "undefined"){ root = window }
|
||||
if(typeof global !== "undefined"){ root = global }
|
||||
root = root || {};
|
||||
var console = root.console = root.console || {log: function(){}};
|
||||
var console = root.console || {log: function(){}};
|
||||
function require(arg){
|
||||
return arg.slice? require[resolve(arg)] : function(mod, path){
|
||||
arg(mod = {exports: {}});
|
||||
|
Loading…
x
Reference in New Issue
Block a user