1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-02-04 13:19:10 -05:00
parent 5973359f39
commit 4c2a7ed02d
23 changed files with 228 additions and 129 deletions

View file

@ -0,0 +1,24 @@
define(['browser'], function (browser) {
function layoutManager() {
var self = this;
self.setFormFactor = function (formFactor) {
self.mobile = false;
self.tv = false;
self[formFactor] = true;
};
// Take a guess at initial layout. The consuming app can override
if (browser.mobile) {
self.setFormFactor('mobile');
} else {
self.setFormFactor('desktop');
}
};
return new layoutManager();
});