1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Plugins: Fixed disabling plugin files that start with "_"

This commit is contained in:
Laurent Cozic 2020-12-10 16:45:00 +00:00
parent 3ed0083e94
commit bc76e4a918

View File

@ -281,7 +281,7 @@ export default class PluginService extends BaseService {
} }
for (const pluginPath of pluginPaths) { for (const pluginPath of pluginPaths) {
if (pluginPath.indexOf('_') === 0) { if (filename(pluginPath).indexOf('_') === 0) {
logger.info(`Plugin name starts with "_" and has not been loaded: ${pluginPath}`); logger.info(`Plugin name starts with "_" and has not been loaded: ${pluginPath}`);
continue; continue;
} }