Skip to content

Commit

Permalink
add Epiphany browser
Browse files Browse the repository at this point in the history
fix #130
  • Loading branch information
lancedikson committed May 9, 2016
1 parent 40fc55f commit b9edb72
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
, version: getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (/epiphany/i.test(ua)) {
result = {
name: 'Epiphany'
, epiphany: t
, version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (windowsphone) {
result = {
name: 'Windows Phone'
Expand Down
9 changes: 9 additions & 0 deletions src/useragents.js
Original file line number Diff line number Diff line change
Expand Up @@ -1179,4 +1179,13 @@ module.exports.useragents = {
, a: true
}
}
, 'Epiphany': {
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Debian/buildd-unstable (3.18.5-1) Epiphany/3.18.5': {
epiphany: true
, x: true
, webkit: true
, version: '3.18.5'
, linux: true
}
}
}

0 comments on commit b9edb72

Please sign in to comment.