mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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:
parent
545d49c70d
commit
bb215966e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue