Add better handling for unloading of plugins

This commit is contained in:
TrainDoctor
2023-01-29 13:32:58 -08:00
parent c2b76d9099
commit 2e53fb217a
3 changed files with 7 additions and 3 deletions

View File

@@ -335,7 +335,7 @@ class PluginLoader extends Logger {
fetchNoCors(url: string, request: any = {}) {
let args = { method: 'POST', headers: {} };
const req = { ...args, ...request, url, data: request.body };
req?.body && delete req.body
req?.body && delete req.body;
return this.callServerMethod('http_request', req);
},
executeInTab(tab: string, runAsync: boolean, code: string) {