Added missing reference for global obj

This commit is contained in:
Jachen Duschletta 2019-11-07 13:45:32 -08:00 committed by GitHub
parent d69c315023
commit ef4b4ff795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,10 @@
* Author: Jachen Duschletta / 2019
*/
// Get window or node Gun instance
var Gun = (typeof window !== "undefined")? window.Gun : require('../gun');
/*
* Function promOnce
* @param limit - due to promises resolving too fast if we do not set a timer