[gnome-shell/wip/carlosg/osk-emoji-and-keypad: 2/8] keyboard: Fix JS warning
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-emoji-and-keypad: 2/8] keyboard: Fix JS warning
- Date: Mon, 4 Feb 2019 14:45:46 +0000 (UTC)
commit f3b7e5a0d257680df90e91c7620755c4dcac24ab
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jan 21 21:40:59 2019 +0100
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 4de6bf9ce..4bbfeaf35 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]