| 16 | 'sources/pgadmin', 'bundled_browser', |
| 17 | ], function(pgAdmin) { |
| 18 | let initializeModules = function(obj) { |
| 19 | for (let key in obj) { |
| 20 | let module = obj[key]; |
| 21 | |
| 22 | if (typeof module?.init == 'function') { |
| 23 | try { |
| 24 | module.init(); |
| 25 | } |
| 26 | catch (e) { |
| 27 | console.warn(e.stack || e); |
| 28 | } |
| 29 | } |
| 30 | else if (typeof module?.Init == 'function') { |
| 31 | try { |
| 32 | module.Init(); |
| 33 | } |
| 34 | catch (e) { |
| 35 | console.warn(e.stack || e); |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | }; |
| 40 | |
| 41 | // Initialize modules registered to pgAdmin, pgAdmin.Browser and Tools object. |
| 42 | initializeModules(pgAdmin); |