aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render-msg.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 2e20d2f..4fff412 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -299,7 +299,7 @@ RenderMsg.prototype.message = function (cb) {
case 'web-init': return this.webInit(cb)
case 'web-root': return this.webRoot(cb)
case 'poll': return this.poll(cb)
- case 'position': if (this.c.version === 'v1') return this.pollPosition(cb)
+ case 'position': return this.position(cb)
case 'scat_message': return this.scat(cb)
case 'share': return this.share(cb)
case 'tag': return this.tag(cb)
@@ -1800,6 +1800,11 @@ RenderMsg.prototype.poll = function (cb) {
), cb)
}
+RenderMsg.prototype.position = function (cb) {
+ if (this.c.version === 'v1') return this.pollPosition(cb)
+ return this.object(cb)
+}
+
RenderMsg.prototype.pollPosition = function (cb) {
var self = this
var details = self.c.pollDetails || self.c.details || self.c