diff --git a/web_interface/static/v3/plugins_manager.js b/web_interface/static/v3/plugins_manager.js index 0bd239cc..74b3e6a0 100644 --- a/web_interface/static/v3/plugins_manager.js +++ b/web_interface/static/v3/plugins_manager.js @@ -6671,13 +6671,16 @@ if (typeof window !== 'undefined') { window.updateArrayObjectData(fieldId); }; - console.log('[ARRAY-OBJECTS] Functions defined on window:', { - addArrayObjectItem: typeof window.addArrayObjectItem, - removeArrayObjectItem: typeof window.removeArrayObjectItem, - updateArrayObjectData: typeof window.updateArrayObjectData, - handleArrayObjectFileUpload: typeof window.handleArrayObjectFileUpload, - removeArrayObjectFile: typeof window.removeArrayObjectFile - }); + // Debug logging (only if pluginDebug is enabled) + if (_PLUGIN_DEBUG_EARLY) { + console.log('[ARRAY-OBJECTS] Functions defined on window:', { + addArrayObjectItem: typeof window.addArrayObjectItem, + removeArrayObjectItem: typeof window.removeArrayObjectItem, + updateArrayObjectData: typeof window.updateArrayObjectData, + handleArrayObjectFileUpload: typeof window.handleArrayObjectFileUpload, + removeArrayObjectFile: typeof window.removeArrayObjectFile + }); + } } // Make currentPluginConfig globally accessible (outside IIFE)