MCPcopy
hub / github.com/SPlayer-Dev/SPlayer / processProtocolFromCommand

Function processProtocolFromCommand

electron/main/utils/protocol.ts:27–34  ·  view source on GitHub ↗
(command: string[])

Source from the content-addressed store, hash-verified

25 * @returns 是否成功处理协议
26 */
27export const processProtocolFromCommand = (command: string[]): boolean => {
28 // 这里第一个参数是程序名称 忽略此 仅遍历参数
29 for (let i = 1; i < command.length; i++) {
30 const arg = command[i];
31 if (trySendCustomProtocol(arg)) return true;
32 }
33 return false;
34};

Callers 2

initSingleLockFunction · 0.90
initWindowsIpcFunction · 0.90

Calls 1

trySendCustomProtocolFunction · 0.85

Tested by

no test coverage detected