MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / cleanupPlugin

Method cleanupPlugin

src/main/api/plugin/http.ts:202–207  ·  view source on GitHub ↗

* 清理插件数据(当插件卸载时调用)

(runtimeNamespace: string, sess?: Electron.Session)

Source from the content-addressed store, hash-verified

200 * 清理插件数据(当插件卸载时调用)
201 */
202 public cleanupPlugin(runtimeNamespace: string, sess?: Electron.Session): void {
203 this.pluginHeaders.delete(runtimeNamespace)
204 if (sess) {
205 this.removeRequestInterceptor(runtimeNamespace, sess)
206 }
207 }
208}
209
210export default new PluginHttpAPI()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected