MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / resolvePluginLogo

Method resolvePluginLogo

src/main/api/renderer/plugins.ts:446–450  ·  view source on GitHub ↗
(pluginPath: string, logo: unknown)

Source from the content-addressed store, hash-verified

444 }
445
446 private resolvePluginLogo(pluginPath: string, logo: unknown): string {
447 if (typeof logo !== 'string' || !logo) return ''
448 if (/^(https?:|file:)/.test(logo)) return logo
449 return pathToFileURL(path.join(pluginPath, logo)).href
450 }
451
452 /**
453 * 删除插件

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected