Fix queryParam response to be compatible with Chrome (fixes #149)

Change-Id: Iea632d5336d043f7f5c3e2ca6ce9e56243a39ede
diff --git a/Changes b/Changes
index 8776a90..f521e17 100755
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.43 2021-09-30
+0.43 2021-10-13
         - New menu class that has an entry at the very end,
           similar to the input text prefix,
           that is always available. (lerepp)
@@ -34,6 +34,7 @@
         - Fix buttongroup anchoring if anchor doesn't exist.
         - Fix blind header titles.
         - Turn "upgradeTo" into an object prototype.
+        - Fix QueryParam response to work with Chrome (#149).
 
 0.42 2021-06-18
         - Added GitHub based CI for perl.
diff --git a/dev/demo/plugin-client.html b/dev/demo/plugin-client.html
index 08e6034..728ef4e 100644
--- a/dev/demo/plugin-client.html
+++ b/dev/demo/plugin-client.html
@@ -59,7 +59,7 @@
           "key": 'QueryParam'
         }, function (d) {
 
-          const par = d.value.param;
+          const par = new URLSearchParams(d.value.search);
           par.set("q",56);
           
           KorAPlugin.sendMsg({
@@ -67,14 +67,24 @@
             'queryParam' : par.toString()
           })
         });
-        
       }
+
+      function getQueryParam() {
+        KorAPlugin.requestMsg({
+          "action":"get",
+          "key": 'QueryParam'
+        }, function (d) {
+          KorAPlugin.log(0, d.value.search);
+        });
+      }
+
       
       </script>
     <ul>
       <li><a onclick="KorAPlugin.log(333, 'Huhu!')">Send log!</a></li>
       <li><a onclick="KorAPlugin.resize()">Resize</a></li>
       <li><a onclick="KorAPlugin.sendMsg({'action':'pipe','service':'Glemm'})">Add Glemm</a></li>
+      <li><a onclick="getQueryParam()">GetQueryParam</a></li>
       <li><a onclick="redirect()">Redirect</a></li>
       <li><a onclick="flood()">Flood!</a></li>
       <li><a onclick="KorAPlugin.requestMsg({'action':'get', 'key':'KQ'}, function (d) { document.write(JSON.stringify(d.value))})">Get KQ</a></li>
diff --git a/dev/js/src/plugin/server.js b/dev/js/src/plugin/server.js
index d5295f7..669708c 100644
--- a/dev/js/src/plugin/server.js
+++ b/dev/js/src/plugin/server.js
@@ -498,7 +498,7 @@
           // Supported in all modern browsers
           var p = new URLSearchParams(window.location.search);
           let v = d["value"] = {};
-          v["param"] = p; // readonly
+          v["search"] = window.location.search; // readonly
           v["q"] = p.get('q');
           v["ql"] = p.get('ql');
           v["cq"] = p.get('cq');
diff --git a/package.json b/package.json
index 30234b2..604359f 100755
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
   "name": "Kalamar",
   "description": "Mojolicious-based Frontend for KorAP",
   "license": "BSD-2-Clause",
-  "version": "0.43.0",
+  "version": "0.43.1",
   "pluginVersion": "0.2.2",
   "engines": {
     "node": ">=6.0.0"