We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4343e24 commit 13af4ccCopy full SHA for 13af4cc
1 file changed
lib/compat/wordpress-7.0/command-palette.php
@@ -90,10 +90,9 @@ function gutenberg_add_admin_bar_script() {
90
);
91
$script = <<<JS
92
(( shortCutLabels ) => {
93
- let userAgent = '';
94
// Assigning agent may error if the HTTP header is blocked at the browser level.
95
try {
96
- userAgent = navigator.userAgent;
+ const userAgent = navigator.userAgent;
97
} catch (error) {
98
// Make no change to the default shortcut label.
99
return;
0 commit comments