mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
consolidate slideout panels
This commit is contained in:
parent
bb1d91b46a
commit
69a57de928
17 changed files with 388 additions and 198 deletions
26
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
26
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
|
@ -537,6 +537,8 @@
|
|||
|
||||
function tryJoinWebSession(device, enableRetry) {
|
||||
|
||||
// First try to join existing session. If it fails, launch a new one
|
||||
|
||||
console.log('calling joinWebApp');
|
||||
device.getWebAppLauncher().joinWebApp(ApplicationID).success(function (session) {
|
||||
|
||||
|
@ -560,29 +562,7 @@
|
|||
|
||||
function launchWebApp(device) {
|
||||
|
||||
// First try to join existing session. If it fails, launch a new one
|
||||
|
||||
device.getWebAppLauncher().joinWebApp(ApplicationID).success(function (session) {
|
||||
|
||||
console.log('joinWebApp success. calling onSessionConnected');
|
||||
setupWebAppSession(device, session);
|
||||
|
||||
}).error(function (err) {
|
||||
|
||||
console.log('joinWebApp error: ' + JSON.stringify(err) + '. calling launchWebApp');
|
||||
|
||||
device.getWebAppLauncher().launchWebApp(ApplicationID).success(function (session) {
|
||||
|
||||
console.log('launchWebApp success. calling onSessionConnected');
|
||||
setupWebAppSession(device, session);
|
||||
|
||||
}).error(function (err1) {
|
||||
|
||||
console.log('launchWebApp error:' + JSON.stringify(err1));
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
tryJoinWebSession(device, true);
|
||||
}
|
||||
|
||||
function onDeviceReady(device) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue