You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 9, 2021. It is now read-only.
constsupportAlert='This site uses local data storage to give you control of your data. Please enable web APIs like localstorage, indexxeddb, etc in your browser settings.'
* @param {String} opts.addressServer URL of the Address Server
126
142
* @param {String} opts.ghostPinbot MultiAddress of a Ghost Pinbot node
127
143
* @param {String} opts.supportCheck Gives browser alert if 3boxjs/ipfs not supported in browser env, defaults to true. You can also set to false to implement your own alert and call Box.support to check if supported.
144
+
* @param {Boolean} opts.iframeCache Enable iframe cache for ipfs/orbit, defaults to true
// if (!ipfs && !ipfsProxy) throw new Error('No IPFS object configured and no default available for environment')
615
-
if(!!ipfs&&iframeStore)console.warn('Warning: iframeStore true, orbit db cache in iframe, but the given ipfs object is being used, and may not be running in same iframe.')
if(!!ipfs&&iframeCache)console.warn('Warning: Caching in iframe is true, but the given ipfs object that is being used may not be using the iframe cache')
616
645
if(ipfs){
617
646
returnipfs
618
647
}else{
619
-
// await iframeLoadedPromise
620
648
// return ipfsProxy
621
649
letipfsRepo
622
650
if(!ipfsOptions){
623
-
ipfsRepo=initIPFSRepo()
651
+
if(ipfsOptions&&iframeCache)console.warn('Warning: Caching in iframe is true, but received ipfs options which may not include the proper repo configuration for using the iframe cache')
0 commit comments