Open zzph opened 5 months ago
Hi there,
I’m trying to integrate using this within a Chrome Extension as part of a service worker.
minified
I get the welcome message (“Hello wonderful person...”), but I cannot use the library as "gun" is undefined.
Without build tools, what's the correct way to import/use this library?
Ps brilliant work on this @amark !
I believe @bmatusiak has a fix for this in github master, not in npm yet, but you can manually shim meanwhile if you want for serviceworkers by doing window = self before import I think. Sorry!
serviceworkers
window = self
THanks!
Hi there,
I’m trying to integrate using this within a Chrome Extension as part of a service worker.
minified
build of the latest version of gun.jsI get the welcome message (“Hello wonderful person...”), but I cannot use the library as "gun" is undefined.
Without build tools, what's the correct way to import/use this library?
Ps brilliant work on this @amark !