Fixed browser context and header error

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-06-22 17:11:01 +02:00
parent f19298e20d
commit efe5957946
3 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,6 @@
import TCGdex from './tcgdex'
import unfetch from 'unfetch'
TCGdex.fetch = unfetch as any
TCGdex.fetch = window.fetch ?? unfetch as any
export default TCGdex
export * from './tcgdex'
module.exports = TCGdex