mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-22 06:39:49 +00:00
Fixed browser context and header error
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user