MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / initializeModules

Function initializeModules

web/pgadmin/static/bundle/app.js:18–39  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

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);

Callers 1

app.jsFile · 0.85

Calls 1

initMethod · 0.45

Tested by

no test coverage detected