Files
Superalgos/Client/WebServer/PlotterPanel.js
T

12 lines
510 B
JavaScript

function getNewPlotterPanel(pDataMineOrHost, pPlotter, pModule, pPanel) {
let functionName = pDataMineOrHost + pPlotter + pModule + pPanel;
functionName = functionName.replace(/-/g, "");
functionName = 'new' + functionName
try {
return window[functionName]();
} catch (err) {
console.log('[ERROR] getNewPlotterPanel -> Error trying to Load a Plotter Panel. err = ' + err.stack)
console.log('[ERROR] getNewPlotterPanel -> functionName = ' + functionName)
}
}