Hardened the script against some of the corner cases.
Sometimes the results are empty and we need to handle it. An empty
string is not valid in JSON.
Sometimes the results are equal to null which is valid JSON but is not
valid for iterating over.
Change-Id: I1615ccdcbbc43e8cf947f53c7a920c7f7ec0c251
diff --git a/client/query/query.html b/client/query/query.html
index 09b0fba..d2174f7 100644
--- a/client/query/query.html
+++ b/client/query/query.html
@@ -30,7 +30,7 @@
<body id="body">
<header>
- <div class="navbar navbar-default container-fluid">
+ <div class="navbar navbar-default navbar-static-top container-fluid">
<div class="navbar-header">
<div class="navbar-brand">NDN Query and Retrieval Tool</div>
</div>
@@ -74,7 +74,7 @@
</div>
<div class="panel panel-default">
- <div class="panel-heading">Results:</div>
+ <div class="panel-heading">Results</div>
<div class="panel-body">
<div class="page"></div>
<table id="resultTable" class="table"></table>