mirror of
https://github.com/amark/gun.git
synced 2025-06-05 21:56:51 +00:00
17 lines
509 B
JavaScript
17 lines
509 B
JavaScript
|
|
var root;
|
|
if(typeof window !== "undefined"){ root = window }
|
|
if(typeof global !== "undefined"){ root = global }
|
|
root = root || {};
|
|
var console = root.console || {log: function(){}};
|
|
function require(arg){
|
|
return arg.slice? require[resolve(arg)] : function(mod, path){
|
|
arg(mod = {exports: {}});
|
|
require[resolve(path)] = mod.exports;
|
|
}
|
|
function resolve(path){
|
|
return path.split('/').slice(-1).toString().replace('.js','');
|
|
}
|
|
}
|
|
if(typeof module !== "undefined"){ var common = module }
|