mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
parent
bfb773d64b
commit
7eee78c517
@ -30,11 +30,15 @@ const detectBrowsers = {
|
|||||||
return ['ChromeHeadless']
|
return ['ChromeHeadless']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (availableBrowser.includes('Chromium')) {
|
||||||
|
return ['ChromiumHeadless']
|
||||||
|
}
|
||||||
|
|
||||||
if (availableBrowser.includes('Firefox')) {
|
if (availableBrowser.includes('Firefox')) {
|
||||||
return ['FirefoxHeadless']
|
return ['FirefoxHeadless']
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error('Please install Firefox or Chrome')
|
throw new Error('Please install Chrome, Chromium or Firefox')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user