'use strict'

const Ipfs = require('ipfs')
const { createProxyClient } = require('ipfs-postmsg-proxy')
const _Buffer = Buffer

window.Buffer = window.Buffer || _Buffer
window.Ipfs = window.Ipfs || Ipfs
window.ipfs = window.ipfs || createProxyClient()

'use strict'

const { createProxyClient } = require('ipfs-postmsg-proxy')
const _Buffer = Buffer

window.Buffer = window.Buffer || _Buffer
window.ipfs = window.ipfs || createProxyClient()

Remove API client constructor from window.Ipfs
Remove API client constructor from window.Ipfs

Context:
https://github.com/ipfs-shipyard/ipfs-companion/issues/460#issuecomment-384225346
