mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-06 20:39:39 +00:00
Ensure translations variable is set before use
This commit is contained in:
@@ -436,7 +436,7 @@ Util.Localisation = {
|
||||
|
||||
// Retrieve localised text
|
||||
get: function (id) {
|
||||
if (Language[id]) {
|
||||
if (typeof Language !== 'undefined' && Language[id]) {
|
||||
return Language[id];
|
||||
} else {
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user