diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-07 14:34:31 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-07 17:10:29 +0200 |
commit | cb424d369919ef29f9a3729fedab5323b1883aca (patch) | |
tree | a8b61cf198ec91bd3a2f9da5ec4e921440590f7d /lib/module-trampoline.js | |
parent | d10f6e024dd23590ba948dfa6b3850abb6317663 (diff) |
refactor reserve creation dialog
Diffstat (limited to 'lib/module-trampoline.js')
-rw-r--r-- | lib/module-trampoline.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/module-trampoline.js b/lib/module-trampoline.js index 73e8ca72d..3eb94e36a 100644 --- a/lib/module-trampoline.js +++ b/lib/module-trampoline.js @@ -35,7 +35,7 @@ System.config({ // Register mithril as a module, // but only if it is ambient. -if (m) { +if (typeof m !== "undefined") { let mod = System.newModule({default: m}); let modName = "mithril"; System.set(modName, mod); @@ -55,7 +55,7 @@ document.addEventListener("DOMContentLoaded", function(event) { function execMain(m) { if (m.main) { console.log("executing module main"); - m.main(); + let res = m.main(); } else { console.warn("module does not export a main() function"); } |