We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 237d199 commit 73bcbf0Copy full SHA for 73bcbf0
1 file changed
src/wp-includes/admin-bar.php
@@ -984,9 +984,10 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
984
*/
985
$script = <<<JS
986
(( shortCutLabels ) => {
987
+ let userAgent = '';
988
// Assigning agent may error if the HTTP header is blocked at the browser level.
989
try {
- const userAgent = navigator.userAgent;
990
+ userAgent = navigator.userAgent;
991
} catch (error) {
992
// Make no change to the default shortcut label.
993
return;
0 commit comments