mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Merge pull request #998 from glacambre/fix_tabopenpos_last
Respect the tabs.move/tabs.create API
This commit is contained in:
commit
9450798006
2 changed files with 2 additions and 2 deletions
|
@ -338,7 +338,7 @@ export async function nativeopen(url: string, ...firefoxArgs: string[]) {
|
|||
let index = (await activeTab()).index + 1
|
||||
switch (pos) {
|
||||
case "last":
|
||||
index = 99999
|
||||
index = -1
|
||||
break
|
||||
case "related":
|
||||
// How do we simulate that?
|
||||
|
|
|
@ -114,7 +114,7 @@ export async function openInNewTab(
|
|||
break
|
||||
case "last":
|
||||
// Infinity can't be serialised, apparently.
|
||||
options.index = 99999
|
||||
options.index = (await browserBg.tabs.query({currentWindow: true})).length
|
||||
break
|
||||
case "related":
|
||||
if (await firefoxVersionAtLeast(57)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue