Skip to content

Commit f3f0ebb

Browse files
author
Aaron Vegh
committed
Add support for detecting Lotus Notes. Whodathunkit?
1 parent 4a3ca40 commit f3f0ebb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/browser.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class Browser
3333
:sparrow => "Sparrow",
3434
:postbox => "Postbox",
3535
:webos => "WebOS",
36-
:playbook => "PlayBook"
36+
:playbook => "PlayBook",
37+
:lotus => "Lotus Notes"
3738
}
3839

3940
VERSIONS = {
@@ -204,6 +205,7 @@ def id
204205
when postbox? then :postbox
205206
when webos? then :webos
206207
when playbook? then :playbook
208+
when lotus? then :lotus
207209
else
208210
:other
209211
end
@@ -389,6 +391,10 @@ def webos?
389391
def playbook?
390392
!!(ua =~ /PlayBook/)
391393
end
394+
395+
def lotus?
396+
!!(ua =~ /Lotus/)
397+
end
392398

393399
# Return the platform.
394400
def platform

0 commit comments

Comments
 (0)