mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge branch 'webpack_part1' of github.com:vitorsemeano/jellyfin-web into webpack_part1
This commit is contained in:
commit
cb1309bb09
@ -1146,7 +1146,15 @@ var AppInfo = {};
|
|||||||
|
|
||||||
function loadPlugins(externalPlugins, appHost, browser, shell) {
|
function loadPlugins(externalPlugins, appHost, browser, shell) {
|
||||||
console.log("Loading installed plugins");
|
console.log("Loading installed plugins");
|
||||||
var list = ["bower_components/emby-webcomponents/playback/playbackvalidation", "bower_components/emby-webcomponents/playback/playaccessvalidation", "bower_components/emby-webcomponents/playback/experimentalwarnings", "bower_components/emby-webcomponents/htmlaudioplayer/plugin", "bower_components/emby-webcomponents/htmlvideoplayer/plugin", "bower_components/emby-webcomponents/photoplayer/plugin", "bower_components/emby-webcomponents/youtubeplayer/plugin"];
|
var list = [
|
||||||
|
"bower_components/emby-webcomponents/playback/playbackvalidation",
|
||||||
|
"bower_components/emby-webcomponents/playback/playaccessvalidation",
|
||||||
|
"bower_components/emby-webcomponents/playback/experimentalwarnings",
|
||||||
|
"bower_components/emby-webcomponents/htmlaudioplayer/plugin",
|
||||||
|
"bower_components/emby-webcomponents/htmlvideoplayer/plugin",
|
||||||
|
"bower_components/emby-webcomponents/photoplayer/plugin",
|
||||||
|
"bower_components/emby-webcomponents/youtubeplayer/plugin"
|
||||||
|
];
|
||||||
|
|
||||||
if ("cordova" === self.appMode) {
|
if ("cordova" === self.appMode) {
|
||||||
list.push("cordova/chromecast");
|
list.push("cordova/chromecast");
|
||||||
@ -1186,7 +1194,7 @@ var AppInfo = {};
|
|||||||
}
|
}
|
||||||
|
|
||||||
function enableNativeGamepadKeyMapping() {
|
function enableNativeGamepadKeyMapping() {
|
||||||
if (!(!window.navigator || "string" != typeof window.navigator.gamepadInputEmulation)) {
|
if (window.navigator && "string" == typeof window.navigator.gamepadInputEmulation) {
|
||||||
window.navigator.gamepadInputEmulation = "keyboard";
|
window.navigator.gamepadInputEmulation = "keyboard";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1231,7 +1239,7 @@ var AppInfo = {};
|
|||||||
|
|
||||||
require(["bower_components/emby-webcomponents/thememediaplayer", "scripts/autobackdrops"]);
|
require(["bower_components/emby-webcomponents/thememediaplayer", "scripts/autobackdrops"]);
|
||||||
|
|
||||||
if (!("cordova" !== self.appMode && "android" !== self.appMode)) {
|
if ("cordova" === self.appMode || "android" === self.appMode) {
|
||||||
if (browser.android) {
|
if (browser.android) {
|
||||||
require(["cordova/mediasession", "cordova/chromecast", "cordova/appshortcuts"]);
|
require(["cordova/mediasession", "cordova/chromecast", "cordova/appshortcuts"]);
|
||||||
} else if (browser.safari) {
|
} else if (browser.safari) {
|
||||||
@ -1239,7 +1247,7 @@ var AppInfo = {};
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(browser.tv || browser.xboxOne || browser.ps4)) {
|
if (!browser.tv && !browser.xboxOne && !browser.ps4) {
|
||||||
require(["bower_components/emby-webcomponents/nowplayingbar/nowplayingbar"]);
|
require(["bower_components/emby-webcomponents/nowplayingbar/nowplayingbar"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1257,7 +1265,7 @@ var AppInfo = {};
|
|||||||
|
|
||||||
require(["apiInput", "mouseManager"]);
|
require(["apiInput", "mouseManager"]);
|
||||||
|
|
||||||
if (!(browser.tv || browser.xboxOne)) {
|
if (!browser.tv && !browser.xboxOne) {
|
||||||
require(["bower_components/emby-webcomponents/playback/playbackorientation"]);
|
require(["bower_components/emby-webcomponents/playback/playbackorientation"]);
|
||||||
registerServiceWorker();
|
registerServiceWorker();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user