mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-14 10:55:11 +00:00
12 lines
243 B
TypeScript
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
|
|
}
|