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

Function setOnError

packages/shared/src/components/ProfilePicture.tsx:81–85  ·  view source on GitHub ↗
(
  newOnError: ReactEventHandler<HTMLImageElement>,
)

Source from the content-addressed store, hash-verified

79};
80
81export function setOnError(
82 newOnError: ReactEventHandler<HTMLImageElement>,
83): void {
84 onError = newOnError;
85}
86
87const resizeSrcReplaceRule: Record<string, (src: string) => string> = {
88 [SocialProvider.Google]: (src) => src.replace(/s96-c$/, 's64-c'),

Callers 1

renderAppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected