RangerMauve / hyper-sdk

Make your own hyper apps!
https://www.youtube.com/watch?v=HyHk4aImd_I&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=20
MIT License
292 stars 45 forks source link

Chrome Security Prompt: Store Files on this Device ? #29

Closed KrishnaPG closed 4 years ago

KrishnaPG commented 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.

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?

RangerMauve commented 4 years ago

You can pass a storage option in the constructor, or use persist: false when initializing the archive.

cc @serapath who encountered this issue, too.