File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,12 @@ import * as History from 'resource:///org/gnome/shell/misc/history.js';
21
21
import { Extension , InjectionManager } from 'resource:///org/gnome/shell/extensions/extension.js' ;
22
22
23
23
export default class HistoryManagerPrefixSearchExtension extends Extension {
24
- constructor ( metadata ) {
25
- super ( metadata ) ;
26
- this . _injectionManager = new InjectionManager ( ) ;
27
- }
28
-
29
24
enable ( ) {
30
25
this . _settings = this . getSettings ( ) ;
31
26
const _settings = this . _settings ;
32
27
28
+ this . _injectionManager = new InjectionManager ( ) ;
29
+
33
30
this . _injectionManager . overrideMethod ( History . HistoryManager . prototype , 'prevItemPrefix' , ( ) => {
34
31
return function ( text , prefix ) {
35
32
/* eslint-disable no-invalid-this */
@@ -98,7 +95,7 @@ export default class HistoryManagerPrefixSearchExtension extends Extension {
98
95
99
96
disable ( ) {
100
97
this . _injectionManager . clear ( ) ;
101
-
98
+ this . _injectionManager = null ;
102
99
this . _settings = null ;
103
100
}
104
101
}
You can’t perform that action at this time.
0 commit comments