mirror of
https://github.com/amark/gun.git
synced 2025-06-06 06:06:50 +00:00
Merge pull request #838 from Dletta/patch-1
Added missing reference for global obj
This commit is contained in:
commit
875de844fb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user