RangerMauve/hyper-sdk

Chrome Security Prompt: Store Files on this Device ?

KrishnaPG opened this issue · 1 comments

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.

image

  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.

cc @serapath who encountered this issue, too.