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:
parent
e188e8aa73
commit
69928b992f
@ -149,7 +149,7 @@ list of aliases can be found in [the file](src/constants.js).
|
||||
|
||||
### 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>
|
||||
|
||||
### Financial Contributors
|
||||
|
@ -88,6 +88,7 @@ export const PLATFORMS_MAP = {
|
||||
mobile: 'mobile',
|
||||
desktop: 'desktop',
|
||||
tv: 'tv',
|
||||
bot: 'bot',
|
||||
};
|
||||
|
||||
export const OS_MAP = {
|
||||
|
@ -12,7 +12,7 @@ export default [
|
||||
test: [/googlebot/i],
|
||||
describe() {
|
||||
return {
|
||||
type: 'bot',
|
||||
type: PLATFORMS_MAP.bot,
|
||||
vendor: 'Google',
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user