What is Hapening
When run inside the browser, any calls like tcgdex.card.list will result in
TypeError: 'fetch' called on an object that does not implement interface Window.
Please explain what should happen
it should run the calls
Please give us a way to reproduce
class Test {
constructor() {this.fetch = fetch }
}
await new Test().fetch('https://tcgdex.dev') // throws
What is Hapening
When run inside the browser, any calls like
tcgdex.card.listwill result inPlease explain what should happen
it should run the calls
Please give us a way to reproduce