mirror of https://github.com/gorhill/uBlock.git
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:
parent
ba78a09917
commit
6836809aad
|
@ -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',
|
||||
( ) => {
|
||||
|
|
Loading…
Reference in New Issue