Commit 723b542 1 parent 7008946 commit 723b542 Copy full SHA for 723b542
File tree 3 files changed +22
-21
lines changed
3 files changed +22
-21
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,27 @@ let deques = undefined;
4
4
let nextTabId = undefined ;
5
5
6
6
browser . commands . onCommand . addListener ( command => {
7
- browser . storage . local . get ( OPTION_DISABLE_KEYBOARD_SHORTCUTS , result => {
8
- if ( ! result [ OPTION_DISABLE_KEYBOARD_SHORTCUTS ] ) {
9
- if ( command === "send-tab-to-end-of-tabdeque" ) {
10
- runOnCurrentTab (
11
- ( tab ) => {
12
- let tabId = tab . id ;
13
- let windowId = tab . windowId ;
14
- sendTabToEndOfDeque ( windowId , tabId ) ;
15
- }
16
- ) ;
17
- } else if ( command === "select-tab-from-end-of-tabdeque" ) {
18
- runOnCurrentTab (
19
- ( tab ) => {
20
- let windowId = tab . windowId ;
21
- selectTabFromEndOfDeque ( windowId ) ;
22
- }
23
- ) ;
7
+ browser . storage . local . get ( OPTION_DISABLE_KEYBOARD_SHORTCUTS )
8
+ . then ( result => {
9
+ if ( ! result [ OPTION_DISABLE_KEYBOARD_SHORTCUTS ] ) {
10
+ if ( command === "send-tab-to-end-of-tabdeque" ) {
11
+ runOnCurrentTab (
12
+ ( tab ) => {
13
+ let tabId = tab . id ;
14
+ let windowId = tab . windowId ;
15
+ sendTabToEndOfDeque ( windowId , tabId ) ;
16
+ }
17
+ ) ;
18
+ } else if ( command === "select-tab-from-end-of-tabdeque" ) {
19
+ runOnCurrentTab (
20
+ ( tab ) => {
21
+ let windowId = tab . windowId ;
22
+ selectTabFromEndOfDeque ( windowId ) ;
23
+ }
24
+ ) ;
25
+ }
24
26
}
25
- }
26
- } ) ;
27
+ } ) ;
27
28
} ) ;
28
29
29
30
browser . contextMenus . create (
Original file line number Diff line number Diff line change 44
44
" contextMenus" ,
45
45
" storage"
46
46
],
47
- "version" : " 2.1.0 "
47
+ "version" : " 2.1.1 "
48
48
}
Original file line number Diff line number Diff line change 30
30
"test" : " web-ext lint"
31
31
},
32
32
"title" : " A firefox extension for better tab handling. Inspired by Opera 12." ,
33
- "version" : " 2.1.0 "
33
+ "version" : " 2.1.1 "
34
34
}
You can’t perform that action at this time.
0 commit comments