commit
6196a1c8ae
|
@ -646,20 +646,24 @@ define([
|
||||||
warn = false;
|
warn = false;
|
||||||
if (plugins.plugins && plugins.plugins.length>0)
|
if (plugins.plugins && plugins.plugins.length>0)
|
||||||
arr = plugins.plugins;
|
arr = plugins.plugins;
|
||||||
var val = plugins.config.autostart || plugins.config.autoStartGuid;
|
if (plugins && plugins.config) {
|
||||||
if (typeof (val) == 'string')
|
var val = plugins.config.autostart || plugins.config.autoStartGuid;
|
||||||
val = [val];
|
if (typeof (val) == 'string')
|
||||||
warn = !!plugins.config.autoStartGuid;
|
val = [val];
|
||||||
autostart = val || [];
|
warn = !!plugins.config.autoStartGuid;
|
||||||
|
autostart = val || [];
|
||||||
|
}
|
||||||
|
|
||||||
plugins = this.serverPlugins;
|
plugins = this.serverPlugins;
|
||||||
if (plugins.plugins && plugins.plugins.length>0)
|
if (plugins.plugins && plugins.plugins.length>0)
|
||||||
arr = arr.concat(plugins.plugins);
|
arr = arr.concat(plugins.plugins);
|
||||||
val = plugins.config.autostart || plugins.config.autoStartGuid;
|
if (plugins && plugins.config) {
|
||||||
if (typeof (val) == 'string')
|
val = plugins.config.autostart || plugins.config.autoStartGuid;
|
||||||
val = [val];
|
if (typeof (val) == 'string')
|
||||||
(warn || plugins.config.autoStartGuid) && console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
|
val = [val];
|
||||||
autostart = autostart.concat(val || []);
|
(warn || plugins.config.autoStartGuid) && console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
|
||||||
|
autostart = autostart.concat(val || []);
|
||||||
|
}
|
||||||
|
|
||||||
this.autostart = autostart;
|
this.autostart = autostart;
|
||||||
this.parsePlugins(arr, false);
|
this.parsePlugins(arr, false);
|
||||||
|
|
Loading…
Reference in a new issue