on master help sign in
Actually build the module when using `Elm.worker`
26420d2evancz
runtime/Init.js+1
@@ -78,6 +78,7 @@ function init(display, container, module) {
78
78
79 // If graphics are not enabled, escape early, skip over setting up DOM stuff.
79 // If graphics are not enabled, escape early, skip over setting up DOM stuff.
80 if (display === ElmRuntime.Display.NONE) {
80 if (display === ElmRuntime.Display.NONE) {
81+ module(elm);
81 return { send : send, recv : recv };
82 return { send : send, recv : recv };
82 }
83 }
83
84