From 88aa07c470a194a8e714c8703c117d3bacf59070 Mon Sep 17 00:00:00 2001 From: boekkooi-fresh Date: Tue, 3 Jan 2017 11:17:08 +0100 Subject: [PATCH] `type` maybe a empty string --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 906ada2..6d2bfe7 100644 --- a/index.html +++ b/index.html @@ -72,7 +72,7 @@ function receiveMessage(event) { console.log(">", event) if(event.data.id && event.data.id == "docson") { - if(event.data.type) { + if(event.data.hasOwnProperty('type')) { try { docson.doc("doc", event.data.definitions, event.data.type).done(function() { maybeExpand(segments);