Catch error when loading invalid plugin from file

This commit is contained in:
JannisX11 2024-07-22 23:53:26 +02:00
parent 315cb87e6d
commit 404b232ebd

View File

@ -333,7 +333,9 @@ class Plugin {
this.tags.safePush('Local');
if (isApp) {
let content = await runPluginFile(file.path, this.id);
let content = await runPluginFile(file.path, this.id).catch((error) => {
console.error(error);
});
if (content) {
if (window.plugin_data) {
scope.id = (plugin_data && plugin_data.id)||pathToName(file.path)