From 1118f442f6c66fd0be5d5d91966310ff5061c9d7 Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Fri, 24 Apr 2020 21:44:18 +0200 Subject: [PATCH] Use TV layout by default on PS4 --- src/components/apphost.js | 4 ---- src/components/layoutManager.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/apphost.js b/src/components/apphost.js index 56e9c93521..6d7e857c32 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -237,10 +237,6 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f features.push("voiceinput"); } - if (!browser.tv && !browser.xboxOne) { - browser.ps4; - } - if (supportsHtmlMediaAutoplay()) { features.push("htmlaudioautoplay"); features.push("htmlvideoautoplay"); diff --git a/src/components/layoutManager.js b/src/components/layoutManager.js index 21bcdf5933..1428f3468d 100644 --- a/src/components/layoutManager.js +++ b/src/components/layoutManager.js @@ -45,7 +45,7 @@ define(['browser', 'appSettings', 'events'], function (browser, appSettings, eve // Take a guess at initial layout. The consuming app can override if (browser.mobile) { this.setLayout('mobile', false); - } else if (browser.tv || browser.xboxOne) { + } else if (browser.tv || browser.xboxOne || browser.ps4) { this.setLayout('tv', false); } else { this.setLayout(this.defaultLayout || 'tv', false);