Files
javascript-sdk/src/tcgdex.browser.ts
2023-01-11 20:32:51 +01:00

12 lines
243 B
TypeScript

import TCGdex from './tcgdex'
import unfetch from 'unfetch'
TCGdex.fetch = window.fetch ?? unfetch as any
if (typeof global !== 'undefined') {
global.TCGdex = TCGdex
}
if (typeof window !== 'undefined') {
(window as any).TCGdex = TCGdex
}