MCPcopy Create free account
hub / github.com/027xiguapi/code-box / handler

Function handler

background/messages/tab.ts:3–7  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

1import type { PlasmoMessaging } from "@plasmohq/messaging"
2
3const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
4 const { url } = req.body
5
6 chrome.tabs.create({ url: `/tabs/${url}` })
7}
8
9export default handler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected