mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
refactor: drop backwards-compatibility check
Checking for `Main.extensionManager` isn't necessary, since this release of the extension can only support >= GNOME 45.
This commit is contained in:
@@ -106,9 +106,7 @@ export default class DashToPanelExtension extends Extension {
|
||||
}
|
||||
|
||||
function _enable(extension) {
|
||||
let ubuntuDock = Main.extensionManager ?
|
||||
Main.extensionManager.lookup(UBUNTU_DOCK_UUID) : //gnome-shell >= 3.33.4
|
||||
ExtensionUtils.extensions[UBUNTU_DOCK_UUID];
|
||||
let ubuntuDock = Main.extensionManager.lookup(UBUNTU_DOCK_UUID);
|
||||
|
||||
if (ubuntuDock && ubuntuDock.stateObj && ubuntuDock.stateObj.dockManager) {
|
||||
// Disable Ubuntu Dock
|
||||
|
||||
Reference in New Issue
Block a user