We still get `undefined` from Gun sometimes
Probably the wait
timeout on .get().once()
needs to be longer than 1s.
Navigated to https://cdn.test.occrp.org/projects/interplanetary-shotgun/example/index.html
(1b442bd1) Importing IPFS-related libraries... service-worker.js:41:9
Successfully compiled asm.js code (total compilation time 5ms) ./lib/ipfs.js
(1b442bd1) Setting up IPFS... service-worker.js:20:17
(1b442bd1) Importing Gun-related libraries... service-worker.js:45:9
unreachable code after return statement ./lib/gun.js:1358:3
unreachable code after return statement ./lib/gun.js:1456:3
Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'! ./lib/gun.js:863:61
Warning: No localStorage exists to persist data to! ./lib/gun.js:1814:12
unreachable code after return statement ./lib/sea.js:1173:10
(1b442bd1) Setting up Gun... service-worker.js:29:17
+-- Gun loaded :: gun is : object service-worker.js:31:17
(1b442bd1) Setting up gunUser... service-worker.js:35:17
+-- Gun init complete :: gunUser is: object service-worker.js:37:17
https://cdn.test.occrp.org https://cdn.test.occrp.org/projects/interplanetary-shotgun/example/index.html service-worker.js:161:13
Falling back to IPSG (commit: 1b442bd1): TypeError: NetworkError when attempting to fetch resource. service-worker.js:223:21
+-- URL was: https://cdn.test.occrp.org/projects/interplanetary-shotgun/example/index.html service-worker.js:224:21
2. Starting Gun lookup of: 'cdn.test.occrp.org, /projects/interplanetary-shotgun/example/index.html' service-worker.js:94:13
+-- gun : object service-worker.js:95:13
+-- gunUser : object service-worker.js:96:13
+-- guessed contentType : text/html service-worker.js:121:13
(1b442bd1) getGunData() service-worker.js:75:21
(1b442bd1) getGunData() :: +-- gunUser : object service-worker.js:76:21
(1b442bd1) getGunData() :: +-- gunaddr[] : cdn.test.occrp.org,/projects/interplanetary-shotgun/example/index.html service-worker.js:77:21
Swarm listening on /p2p-circuit/ipfs/QmRfpmtPtMAaLiVFBvqdsPcqrCcRwz5xEy3GLRQYCrJYEa ./lib/ipfs.js:90993:12
+-- IPFS loaded :: ipfs is : object service-worker.js:22:17
unreachable code after return statement ./lib/sea.js:1173:10
unreachable code after return statement ./lib/gun.js:1358:3
2.1 IPFS address: 'undefined' service-worker.js:84:29
3. Starting IPFS lookup of: 'undefined'