Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

instantiate repl inside first worker to avoid nodules issues

  • Loading branch information...
commit 296b745a5750dbaff04051f0ef839f45a3d7d362 1 parent 7781650
@kriszyp authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 jackconfig.js
View
6 jackconfig.js
@@ -2,14 +2,16 @@
* The starting point for Pintura running as a Jack app.
*/
var pinturaApp;
-require("nodules").useLocal().ensure(["pintura/pintura", "app", "tunguska/jack-connector"], function(require){
+require("nodules").useLocal().ensure(["pintura/pintura", "app", "tunguska/jack-connector", "narwhal/narwhal/repl"], function(require){
require.reloadable(function(){
pinturaApp = require("pintura/pintura").app;
require("app");
});
require("tunguska/jack-connector").observe("worker", pinturaApp.addConnection);
// we start the REPL (the interactive JS console) because it is really helpful
- new (require("worker").SharedWorker)("narwhal/repl");
+ if(require("jack/handler/simple-worker").options.firstWorker){
+ require("narwhal/narwhal/repl").repl(true);
+ }
});
var File = require("file"),

0 comments on commit 296b745

Please sign in to comment.
Something went wrong with that request. Please try again.