MCPcopy Create free account
hub / github.com/dailydotdev/apps / isEmbeddableProtocol

Function isEmbeddableProtocol

packages/extension/src/frame/target.ts:5–6  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

3 | { ok: false; reason: 'invalid-target' | 'unsupported-target-protocol' };
4
5const isEmbeddableProtocol = (url: URL): boolean =>
6 ['http:', 'https:'].includes(url.protocol);
7
8export const parseFrameTarget = (rawTarget: string): ParsedFrameTarget => {
9 try {

Callers 1

parseFrameTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected