[Fix] Return nothing if no key given

This commit is contained in:
Robert von Burg 2023-07-07 08:06:06 +02:00
parent c9e1da2494
commit c0d5d6003a
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "strolch-wc-localize-behavior",
"description": "Strolch Polymer Localization Behavior extension",
"version": "1.1.17",
"version": "1.1.18",
"authors": [
"Franz Nieschalk",
"Robert von Burg"

View File

@ -21,7 +21,7 @@
return function () {
var key = arguments[0];
if(!key)
return "!!no-key!!";
return;
if (!resources || !language || !resources[language])
return key;