limit resume to 8

This commit is contained in:
Luke Pulverenti 2016-03-08 13:47:36 -05:00
parent dd2b5bc15e
commit fb269362ff
7 changed files with 62 additions and 25 deletions

View file

@ -1,5 +1,29 @@
define(['isMobile'], function (isMobile) {
function isTv() {
// This is going to be really difficult to get right
var userAgent = navigator.userAgent.toLowerCase();
if (userAgent.indexOf('tv') != -1) {
return true;
}
if (userAgent.indexOf('samsung') != -1) {
return true;
}
if (userAgent.indexOf('nintendo') != -1) {
return true;
}
if (userAgent.indexOf('viera') != -1) {
return true;
}
return false;
}
var uaMatch = function (ua) {
ua = ua.toLowerCase();
@ -68,5 +92,7 @@
browser.xboxOne = userAgent.toLowerCase().indexOf('xbox') != -1;
browser.animate = document.documentElement.animate != null;
browser.tv = isTv();
return browser;
});