1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

feat(constants): add bot as a platform (#540)

This commit is contained in:
Lucio Martinez 2023-11-27 15:19:06 +01:00 committed by GitHub
parent e188e8aa73
commit 69928b992f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ list of aliases can be found in [the file](src/constants.js).
### Code Contributors ### Code Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. This project exists thanks to all the people who contribute. [[Contribute](.github/CONTRIBUTING.md)].
<a href="https://github.com/lancedikson/bowser/graphs/contributors"><img src="https://opencollective.com/bowser/contributors.svg?width=890&button=false" /></a> <a href="https://github.com/lancedikson/bowser/graphs/contributors"><img src="https://opencollective.com/bowser/contributors.svg?width=890&button=false" /></a>
### Financial Contributors ### Financial Contributors

View File

@ -88,6 +88,7 @@ export const PLATFORMS_MAP = {
mobile: 'mobile', mobile: 'mobile',
desktop: 'desktop', desktop: 'desktop',
tv: 'tv', tv: 'tv',
bot: 'bot',
}; };
export const OS_MAP = { export const OS_MAP = {

View File

@ -12,7 +12,7 @@ export default [
test: [/googlebot/i], test: [/googlebot/i],
describe() { describe() {
return { return {
type: 'bot', type: PLATFORMS_MAP.bot,
vendor: 'Google', vendor: 'Google',
}; };
}, },