File tree 2 files changed +0
-6
lines changed
add-on/src/contentScripts/ipfs-proxy
2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const _Buffer = Buffer
4
3
const { assign, freeze } = Object
5
4
6
5
// TODO: (wip) this should not be injected by default into every page,
@@ -46,7 +45,4 @@ function createWindowIpfs () {
46
45
return freeze ( proxyClient )
47
46
}
48
47
49
- // TODO: we should remove Buffer and add support for Uint8Array/ArrayBuffer natively
50
- // See: https://github.com/ipfs/interface-ipfs-core/issues/404
51
- window . Buffer = window . Buffer || _Buffer
52
48
window . ipfs = window . ipfs || createWindowIpfs ( )
Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ if (window.ipfs && window.ipfs.enable) {
68
68
}
69
69
```
70
70
71
- Note that IPFS Companion also adds ` window.Buffer ` if it doesn't already exist.
72
-
73
71
See also: [ How do I fallback if ` window.ipfs ` is not available?] ( #how-do-i-fallback-if-windowipfs-is-not-available )
74
72
75
73
### Error Codes
You can’t perform that action at this time.
0 commit comments