From 962d96cff2d01a27c66effa312c2d7c274869648 Mon Sep 17 00:00:00 2001 From: Fang Date: Wed, 20 Dec 2017 00:06:52 +0100 Subject: [PATCH] Bring webtalk up to speed. Also see urbit/talk#43. --- web/talk/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/talk/main.js b/web/talk/main.js index 38bde48757..256beac4bd 100644 --- a/web/talk/main.js +++ b/web/talk/main.js @@ -363,6 +363,7 @@ module.exports = recl({ key: "speech" }, url); case !exp: + exp.res = exp.res || ["evaluating..."]; return div({}, exp.exp, div({ className: "fat" }, pre({}, exp.res.join("\n")))); @@ -1351,6 +1352,9 @@ module.exports = recl({ if (valid === true) { stan = $('#audience .input').text() || util.mainStationPath(window.urb.user); stan = (stan.split(/\ +/)).map(function(v) { + if (v.indexOf("/") === -1) { + v = v + "/inbox"; + } if (v[0] === "~") { return v; } else { @@ -1596,6 +1600,7 @@ module.exports = function(arg) { var path; end = window.urb.util.numDot(end); start = window.urb.util.numDot(start); + console.log('getting grams from ' + end + ' to ' + start); path = util.talkPath('circle', station, 'grams', end, start); return window.urb.bind(path, function(err, res) { var ref, ref1;