Skip to content

Commit

Permalink
Fix open all bookmarks order in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Jun 17, 2024
1 parent b230202 commit 038a2fc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/target/fallback/openTab.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { environment } from './environment'

export function openTab(links) {
for(const link of Array.isArray(links)?links:[links])
const arr = Array.isArray(links)?links:[links]

//firefox opens tabs in reverse order
if (environment.includes('firefox'))
arr.reverse()

for(const link of arr)
if (!link.startsWith('file'))
window.open(link)
}

0 comments on commit 038a2fc

Please sign in to comment.