Closed KrishnaPG closed 4 years ago
Running this below example code from the ReadMe is prompting security alert as shown below. Since this example code apparently does not much, this prompt is very alarming.
const discoveryCoreKey = 'dat://bee80ff3a4ee5e727dc44197cb9d25bf8f19d50b0f3ad2984cfe5b7d14e75de7' const discoveryCore = new Hypercore(discoveryCoreKey, { extensions: ['discovery'] });
Question:
How to specify that dat SDK should use IDB / localForage or its equivalent instead of FileSystemAPI?
You can pass a storage option in the constructor, or use persist: false when initializing the archive.
storage
persist: false
cc @serapath who encountered this issue, too.
Running this below example code from the ReadMe is prompting security alert as shown below. Since this example code apparently does not much, this prompt is very alarming.
Question:
How to specify that dat SDK should use IDB / localForage or its equivalent instead of FileSystemAPI?