1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

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.
This commit is contained in:
Raymond Hill 2021-10-13 08:23:20 -04:00
parent ba78a09917
commit 6836809aad
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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',
( ) => {