MCPcopy
hub / github.com/ZToolsCenter/ZTools / registerIconScheme

Function registerIconScheme

src/main/core/iconProtocol.ts:74–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 * 必须在 app.ready 之前调用
73 */
74export function registerIconScheme(): void {
75 protocol.registerSchemesAsPrivileged([
76 {
77 scheme: 'ztools-icon',
78 privileges: {
79 bypassCSP: true,
80 secure: true,
81 standard: false,
82 supportFetchAPI: true,
83 corsEnabled: false,
84 stream: false
85 }
86 }
87 ])
88}
89
90/**
91 * 获取文件图标的 base64 Data URL(异步)

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected