* 清理插件数据(当插件卸载时调用)
(runtimeNamespace: string, sess?: Electron.Session)
| 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 | |
| 210 | export default new PluginHttpAPI() |
nothing calls this directly
no test coverage detected