* 检查某个工具是否已在指定 WebContents 中注册。
(webContents: WebContents, toolName: string)
| 188 | * 检查某个工具是否已在指定 WebContents 中注册。 |
| 189 | */ |
| 190 | public isToolRegistered(webContents: WebContents, toolName: string): boolean { |
| 191 | return this.registeredTools.get(webContents.id)?.has(toolName) ?? false |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * 在插件上下文中执行已注册的工具处理器。 |
no test coverage detected