Open whizzzkid opened 1 year ago
@SgtPooki @whizzzkid : how big of an effort this is? I'm asking so can trade off between getting https://github.com/ipfs/ipfs-companion/issues/1127 or doing other work.
@BigLep It's about a week worth of effort. I talked with @whizzzkid about this and I believe I could get this done before EOW in a way that works for us, though it would be somewhat hacky.
Blocks: https://github.com/ipfs/ipfs-companion/issues/1127 Related: https://github.com/Countly/countly-sdk-web/issues/382
The issue:
countly-web-sdk
ships as an iife which bundles everything, including dependence onwindow
object and implementsXMLHttpRequest
. Both of these are blockers for implement countly in webworkers (companion background worker and service workers)Proposed Fix:
DOM
,window
,XMLHttpRequest
andlocalStorage
, so:fetch
to open connections to countly endpointsindexedDB
for storage needs. The browser API is awful to use, but projects likeDexie
provide a decent API to work withindexedDB
.webworker
build target as of v5. We can simply provide an export target without changing a lot of things.Other Thoughts
window
if still needed.CC: @SgtPooki