mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
lazy load chromecast script
This commit is contained in:
parent
3114742ab7
commit
4b6692c92d
@ -1811,6 +1811,14 @@ var AppInfo = {};
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
requirejs(['thirdparty/cordova/chromecast']);
|
||||
} else {
|
||||
if ($.browser.chrome) {
|
||||
requirejs(['scripts/chromecast']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
requirejs.config({
|
||||
|
1
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
Normal file
1
dashboard-ui/thirdparty/cordova/chromecast.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
|
Loading…
Reference in New Issue
Block a user