Created
December 12, 2022 07:42
-
-
Save Olian04/62510731663c7a038b32a07b02a4a5a6 to your computer and use it in GitHub Desktop.
test-command
This file contains 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
import type { Prompt, Page, Browser } from 'arbitrary-command-palette/types'; | |
export async function( | |
prompt: Prompt, | |
page: Page, | |
browser: Browser, | |
) { | |
prompt.thinking(); | |
const catResp = await fetch('https://cataas.com/cat'); | |
const imgURL = URL.createObjectURL(catResp.blob()); | |
await prompt.show(`<img src="${imgURL}">`); | |
prompt.done(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment