Solve: require Gun in Mesh.

This commit is contained in:
Adriano Rogowski 2018-11-28 07:31:38 -02:00
parent a1131ed0bc
commit 1e8bece479
2 changed files with 3 additions and 2 deletions

3
gun.js
View File

@ -1920,6 +1920,7 @@
})(USE, './adapters/localStorage');
;USE(function(module){
var Gun = USE('../index');
var Type = USE('../type');
function Mesh(ctx){
@ -1941,7 +1942,7 @@
return;
}
// add hook for AXE?
//if (Gun.AXE && opt && opt.super) { Gun.AXE.say(msg, mesh.say, this); return; } // rogowski
if (Gun.AXE && opt && opt.super) { Gun.AXE.say(msg, mesh.say, this); return; } // rogowski
mesh.say(msg);
}

View File

@ -1,4 +1,4 @@
var Gun = require('../index');
var Type = require('../type');
function Mesh(ctx){