diff --git a/src/target/fallback/openTab.js b/src/target/fallback/openTab.js index 89620adb..513e19b2 100644 --- a/src/target/fallback/openTab.js +++ b/src/target/fallback/openTab.js @@ -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) } \ No newline at end of file