(input = '', corsProxy = !input.startsWith('data:') && !input.includes('://localhost'))
| 9 | } |
| 10 | |
| 11 | async fetch(input = '', corsProxy = !input.startsWith('data:') && !input.includes('://localhost')) { |
| 12 | let url = this.resolve(input); |
| 13 | return await fetch(url); |
| 14 | // return await fetch((corsProxy ? 'https://cors-anywhere.com/' : '') + url); |
| 15 | } |
| 16 | } |