mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-23 01:24:22 +00:00
4af5caed7a
Close gh-2234
25 lines
550 B
JavaScript
25 lines
550 B
JavaScript
// This list is static, so no requests are required
|
|
// in the command help menu.
|
|
|
|
import { getBrowsers } from "../browserstack/api.js";
|
|
|
|
export const browsers = [
|
|
"chrome",
|
|
"ie",
|
|
"firefox",
|
|
"edge",
|
|
"safari",
|
|
"opera",
|
|
"yandex",
|
|
"IE Mobile",
|
|
"Android Browser",
|
|
"Mobile Safari"
|
|
];
|
|
|
|
// A function that can be used to update the above list.
|
|
export async function getAvailableBrowsers() {
|
|
const browsers = await getBrowsers( { flat: true } );
|
|
const available = [ ...new Set( browsers.map( ( { browser } ) => browser ) ) ];
|
|
return available;
|
|
}
|