fix: Plugins (#578)
* test * test * fix * any * update * update * fix LightNovelReader * Why did I do that * typo * fix * type * unused icons have been removed * madara... * ops * fix * close #563 * update * LitSpace * fix jaomix * fix renovels * fix ficbook * update ficbook
This commit is contained in:
@@ -25,13 +25,14 @@ export const all_plugins = (): PluginList => {
|
||||
plugin.split(".")[0]
|
||||
}`;
|
||||
const instance = require(requirePath);
|
||||
const { id, name, version } = instance;
|
||||
const { id, name, version, icon } = instance;
|
||||
const info: Plugin.Info = {
|
||||
id,
|
||||
name,
|
||||
lang: languageNative,
|
||||
version,
|
||||
requirePath,
|
||||
icon,
|
||||
}; // lang: language with native name
|
||||
res[info.lang].push(info);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user