-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Brave specific chrome APIs
Brian R. Bondy edited this page Mar 30, 2021
·
1 revision
Brave exposes some additional APIs to extensions on top of the chrome APIs.
Allows a user to get information about the local IPFS node.
Requires ipfs
permission
- Parameters:
-
uri
: An IPFS uri of the formipfs://[cid]
-
callback
: Callback called with the gateway URL of the passed in URI
-
- Parameters:
-
callback
: Callback called with a boolean indicating if IPFS is enabled
-
IPFS Is enabled when it is not in a private Window, not disabled by admin policy, and enabled via chrome://flags (which is the default). This does not indicate if the resolution type is set to a certain value.
- Parameters:
-
callback
: Callback called with a string `"ask"|"gateway"|"local"|"disabled"
-
Available in Brave 1.24.x and later