keyboard: Fix JS warning

The label field may be empty here (eg. buttons fully styled through css),
just resort to an empty string then.
This commit is contained in:
Carlos Garnacho 2019-01-21 21:40:59 +01:00 committed by Florian Müllner
parent 545d49c70d
commit bb215966e5

View File

@ -802,7 +802,7 @@ var Keyboard = class Keyboard {
let switchToLevel = key.level;
let action = key.action;
extraButton = new Key(key.label, []);
extraButton = new Key(key.label || '', []);
extraButton.keyButton.add_style_class_name('default-key');
if (key.extraClassName != null)