MCPcopy Index your code
hub / github.com/BuilderIO/SSDiff / getIframeWidth

Function getIframeWidth

packages/vite-plugin-realtime-diff/src/utils.ts:9–11  ·  view source on GitHub ↗
(widthKey: string)

Source from the content-addressed store, hash-verified

7 * @return {string} The width of the iframe.
8 */
9export function getIframeWidth(widthKey: string) {
10 return defaultWidths[widthKey] || defaultWidths["100%"];
11}
12
13/**
14 * Checks if the URL is valid.

Callers 2

configureServerFunction · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected