Skip to content

Commit

Permalink
wip: temporary commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Oct 12, 2022
1 parent 9db055c commit bbf040f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/services/useragent-service.ts
Expand Up @@ -120,18 +120,20 @@ export default class UseragentService {
},
}

switch (parsed.engine.name) {
case 'WebKit':
result.engine = 'webkit'
break
if (parsed.engine.name) {
switch (parsed.engine.name.toLowerCase()) {
case 'webkit':
result.engine = 'webkit'
break

case 'Blink':
result.engine = 'blink'
break
case 'blink':
result.engine = 'blink'
break

case 'Gecko':
result.engine = 'gecko'
break
case 'gecko':
result.engine = 'gecko'
break
}
}

if (parsed.os.name) {
Expand Down

0 comments on commit bbf040f

Please sign in to comment.