webdb
webdb copied to clipboard
Pass options to DatArchive
WebDB uses DatArchive's defaults and does not pass user options to it. I'd like to be able to pass options through in order to, for example, use custom discovery servers.
Ok sure. What would be the ideal way to pass them? As opts in indexArchive()
, or somewhere else?
opts in indexArchive makes sense, like { dat: {...} }
so for example:
archive = typeof archive === 'string' ? new (this.DatArchive)(archive)(opts.dat) : archive
I'd be happy to put together a PR later today.
Sure that works for me