commit | cc1ff99e1a701258b9dea4d9780f26bb66889f42 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Sep 21 10:35:43 2020 +0200 |
committer | Akron <nils@diewald-online.de> | Mon Sep 21 10:35:43 2020 +0200 |
tree | 959437b48b8f6080963c15a326ec1e6b349053ec | |
parent | a4e8189eb5acf7b71a1b07e22b30886a35569735 [diff] |
Check for variable to be defined Change-Id: I41cf90c66398fd544f5cf53b6bad8e01277fed0d
diff --git a/plugin/templates/export.js b/plugin/templates/export.js index cfb96f4..fbada53 100644 --- a/plugin/templates/export.js +++ b/plugin/templates/export.js
@@ -1,3 +1,5 @@ +"use strict"; + function pluginit(P) { P.requestMsg( { @@ -6,7 +8,7 @@ }, function (d) { let v = d.value; - if (v["q"]) { + if (v !== undefined && v["q"]) { let e = v["q"]; document.getElementById("q").value=v["q"]; if (v["ql"]) {