From 6836809aad965cdf0f923558df95d263dd48ed02 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 13 Oct 2021 08:23:20 -0400 Subject: [PATCH] Make Shortcut pane not present by default [Firefox] By default uBO assumed the Shortcut pane was needed, unless it found the current version of FF was higher than 73. This commit reverses the test, it assumes the Shortcut pane is not needed, unless the current version is lower than 74. --- src/js/commands.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/js/commands.js b/src/js/commands.js index 553f2abf2..63585df29 100644 --- a/src/js/commands.js +++ b/src/js/commands.js @@ -32,12 +32,13 @@ import { hostnameFromURI } from './uri-utils.js'; // https://github.com/uBlockOrigin/uBlock-issues/issues/386 // Firefox 74 and above has complete shotcut assignment user interface. -µb.canUpdateShortcuts = +µb.canUpdateShortcuts = false; + +if ( µb.canUseShortcuts && vAPI.webextFlavor.soup.has('firefox') && - typeof vAPI.commands.update === 'function'; - -if ( µb.canUpdateShortcuts ) { + typeof vAPI.commands.update === 'function' +) { self.addEventListener( 'webextFlavor', ( ) => {