This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Adds support for importing ES modules from the web. | |
| */ | |
| export function load(url, _context, nextLoad) { | |
| if (!url.startsWith("https://")) { | |
| return nextLoad(url); | |
| } | |
| return fetch(url) | |
| .then((res) => res.text()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const gh = (path) => new URL(path, 'https://nobsdelivr.private.coffee/gh'); | |
| const getJson = (url) => | |
| fetch(url, { headers: { Accept: "application/json" } }) | |
| .then((response) => response.json()) | |
| .catch((error) => { | |
| console.error(error); | |
| }); | |
| async function fetchInstances() { |