Merge pull request #838 from Dletta/patch-1

Added missing reference for global obj
This commit is contained in:
Mark Nadal 2019-11-13 05:46:15 -08:00 committed by GitHub
commit 875de844fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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