mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
change some plugin stuff and allow to hook into tx_search
This commit is contained in:
+7
-1
@@ -14,7 +14,13 @@ function parsePluginConfig(filePath) {
|
||||
const pluginExports = require(filePath);
|
||||
Object.assign(pluginConfig, pluginExports.pluginConfig);
|
||||
|
||||
// Check if pluginConfig has frontEndPath defined
|
||||
if(pluginConfig.server_embedded) {
|
||||
setTimeout(function() {
|
||||
consoleCmd.logInfo(`Server plugin ${pluginConfig.name} ${pluginConfig.version} initialized successfully.`);
|
||||
}, 500)
|
||||
return pluginConfig;
|
||||
}
|
||||
|
||||
if (pluginConfig.frontEndPath) {
|
||||
const sourcePath = path.join(path.dirname(filePath), pluginConfig.frontEndPath);
|
||||
const destinationDir = path.join(__dirname, '../web/js/plugins', path.dirname(pluginConfig.frontEndPath));
|
||||
|
||||
Reference in New Issue
Block a user