Skip to content

Commit c067f62

Browse files
committed
Merge branch 'patch/locales-presence'
2 parents 5918cf6 + 2946953 commit c067f62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/browserino/definitions/matchers/global.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
# a hash of http headers as second argument
2727
locales []
2828

29+
# overwrite client-generated locales? method
30+
# to make the correct comparison for arrays
31+
locales? { locales.any? }
32+
2933
smarttv %r{(?:smart[\-\s]|hbb|apple\s|google|g)(tv)}i
3034

3135
tablet %r{(ipad|transformer|slider|a\d+f;|tablet|lenovo

0 commit comments

Comments
 (0)