Chrome Security Prompt: Store Files on this Device ?
KrishnaPG opened this issue · 1 comments
KrishnaPG commented
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?
RangerMauve commented
You can pass a storage
option in the constructor, or use persist: false
when initializing the archive.
cc @serapath who encountered this issue, too.