From bb215966e511083f8145879a292b63c0ae7cd370 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 21 Jan 2019 21:40:59 +0100 Subject: [PATCH] keyboard: Fix JS warning The label field may be empty here (eg. buttons fully styled through css), just resort to an empty string then. --- js/ui/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index cbfdb0914..a37580b32 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -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)