From 151bb5bb639793e5bb9ade64f67b9e89d02d3876 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 19 Feb 2019 15:04:19 +0100 Subject: [PATCH] More data in the graph --- www/debug/inner.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/debug/inner.js b/www/debug/inner.js index c47edf625..70ce3f0de 100644 --- a/www/debug/inner.js +++ b/www/debug/inner.js @@ -7,6 +7,7 @@ define([ '/bower_components/nthen/index.js', '/common/sframe-common.js', '/common/common-interface.js', + '/common/common-hash.js', '/common/hyperscript.js', '/api/config', '/common/common-realtime.js', @@ -28,6 +29,7 @@ define([ nThen, SFCommon, UI, + Hash, h, ApiConfig, CommonRealtime, @@ -67,9 +69,13 @@ define([ logLevel: 0, noPrune: true }); + var hashes = metadataMgr.getPrivateData().availableHashes; + var hash = hashes.editHash || hashes.viewHash; + var chan = Hash.hrefToHexChannelId('/drive/#'+hash); + var makeGraph = function () { var out = [ - 'digraph {' + chan + ' digraph {' ]; var parseBlock = function (x) { var c = x.getChildren();