Open SrPatinhas opened 5 years ago
I'm not sure about the use case, but I think you could do this:
const Vue = require('vue')
const WebTorrent = require('webtorrent-hybrid')
const VueMagnet = require('vue-magnet')
Vue.WebTorrent = new WebTorrent()
Vue.use(VueMagnet)
Vue-magnet uses Vue.WebTorrent
if it's defined instead of creating a new instance during installation. If Vue.Webtorrent
is a webtorrent-hybrid instance, then everything should work as expected because it has the same API as webtorrent.
If this component used this webtorrent-hybrid it would have more compatibility