diff --git a/CHANGELOG.md b/CHANGELOG.md index 12b0dae0..f30b3e71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ _This release is scheduled to be released on 2021-01-01._ ### Fixed +- No select Text for TouchScreen use - JSON Parse translation files with comments crashing UI. (#2149) - Calendar parsing where RRULE bug returns wrong date, add Windows timezone name support. (#2145, #2151) - Wrong node-ical version installed (package.json) requested version. (#2153) @@ -60,6 +61,7 @@ _This release is scheduled to be released on 2021-01-01._ - remove undefined objects from modules array (#2382) - update node-ical version again, 0.12.7, change RRULE fix (#2371, #2379), node-ical now throws error (which we catch) - update simple-git version to 2.31 unhandled promise rejection (#2383) +- Translator variables can have falsy values (e.g. empty string) ## [2.13.0] - 2020-10-01 diff --git a/css/main.css b/css/main.css index bca48f9e..16c281be 100644 --- a/css/main.css +++ b/css/main.css @@ -2,6 +2,7 @@ html { cursor: none; overflow: hidden; background: #000; + user-select: none; } ::-webkit-scrollbar { diff --git a/js/translator.js b/js/translator.js index 5dc50045..82eec53a 100644 --- a/js/translator.js +++ b/js/translator.js @@ -68,7 +68,7 @@ var Translator = (function () { template = variables.fallback; } return template.replace(new RegExp("{([^}]+)}", "g"), function (_unused, varName) { - return variables[varName] || "{" + varName + "}"; + return varName in variables ? variables[varName] : "{" + varName + "}"; }); }