Skip to content

Commit

Permalink
NoFlo 0.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Feb 24, 2016
1 parent b27bd39 commit beddbcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
console.time('noflo-ui-init');
console.time('polymer-ready');


window.addEventListener('polymer-ready', function() {
var noflo = require('noflo');
var runtime = require('noflo-runtime-webrtc');
Expand All @@ -22,7 +21,10 @@ window.addEventListener('polymer-ready', function() {
};
var loadGraphsDebuggable = function(callback) {
var secret = Math.random().toString(36).substring(7);
noflo.graph.loadJSON(require(mainGraph), function (graph) {
noflo.graph.loadJSON(require(mainGraph), function (err, graph) {
if (err) {
console.log(err);
}
graph.baseDir = baseDir;
var runtimeOptions = {
defaultGraph: graph,
Expand Down

0 comments on commit beddbcc

Please sign in to comment.