MCPcopy
hub / github.com/MagicMirrorOrg/MagicMirror / afterLoad

Function afterLoad

js/loader.js:150–155  ·  view source on GitHub ↗

* @returns {Promise }

()

Source from the content-addressed store, hash-verified

148 * @returns {Promise<void>}
149 */
150 async function afterLoad () {
151 const moduleObject = Module.create(module.name);
152 if (moduleObject) {
153 await bootstrapModule(module, moduleObject);
154 }
155 }
156
157 if (loadedModuleFiles.indexOf(url) !== -1) {
158 await afterLoad();

Callers 1

loadModuleFunction · 0.85

Calls 2

bootstrapModuleFunction · 0.85
createMethod · 0.80

Tested by

no test coverage detected