mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
extract scripts
This commit is contained in:
parent
e0b22930c0
commit
2f544f923b
18 changed files with 104 additions and 140 deletions
|
@ -62,20 +62,6 @@
|
|||
|
||||
AndroidSharedPreferences.remove(name);
|
||||
};
|
||||
|
||||
function migrateKey(key) {
|
||||
var json = localStorage.getItem(key);
|
||||
if (json) {
|
||||
self.setItem(key, json);
|
||||
localStorage.removeItem(key);
|
||||
}
|
||||
}
|
||||
|
||||
function migrate() {
|
||||
migrateKey('servercredentials3');
|
||||
}
|
||||
|
||||
migrate();
|
||||
}
|
||||
|
||||
globalScope.appStorage = new preferencesStore();
|
||||
|
|
|
@ -302,7 +302,7 @@
|
|||
|
||||
self.getTargets = function () {
|
||||
|
||||
return ConnectHelper.getDeviceList().filter(function (d) {
|
||||
return ConnectSDKHelper.getDeviceList().filter(function (d) {
|
||||
|
||||
return isChromecast(d.getModelName()) || isChromecast(d.getFriendlyName());
|
||||
|
||||
|
@ -590,7 +590,7 @@
|
|||
|
||||
var deferred = $.Deferred();
|
||||
|
||||
var device = ConnectHelper.getDeviceList().filter(function (d) {
|
||||
var device = ConnectSDKHelper.getDeviceList().filter(function (d) {
|
||||
|
||||
return d.getId() == target.id;
|
||||
})[0];
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
return ConnectSDK.discoveryManager.getDeviceList();
|
||||
}
|
||||
|
||||
window.ConnectHelper = {
|
||||
window.ConnectSDKHelper = {
|
||||
|
||||
getDeviceList: getDeviceList
|
||||
};
|
||||
|
|
|
@ -400,7 +400,7 @@
|
|||
|
||||
self.getTargets = function () {
|
||||
|
||||
return ConnectHelper.getDeviceList().filter(function (d) {
|
||||
return ConnectSDKHelper.getDeviceList().filter(function (d) {
|
||||
|
||||
return isValid(d);
|
||||
|
||||
|
@ -504,7 +504,7 @@
|
|||
|
||||
var deferred = $.Deferred();
|
||||
|
||||
var device = ConnectHelper.getDeviceList().filter(function (d) {
|
||||
var device = ConnectSDKHelper.getDeviceList().filter(function (d) {
|
||||
|
||||
return d.getId() == target.id;
|
||||
})[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue