mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add 64-bit support
This commit is contained in:
parent
91051df493
commit
9227ac0989
5 changed files with 16 additions and 90 deletions
27
dashboard-ui/cordova/android/iap.js
vendored
27
dashboard-ui/cordova/android/iap.js
vendored
|
@ -149,26 +149,29 @@
|
|||
var cacheValue = appStorage.getItem(cacheKey);
|
||||
if (cacheValue) {
|
||||
|
||||
var deferred = DeferredBuilder.Deferred();
|
||||
deferred.resolveWith(null, [cacheValue == 'true']);
|
||||
return deferred.promise();
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
resolve(cacheValue == 'true');
|
||||
});
|
||||
|
||||
} else {
|
||||
return HttpClient.send({
|
||||
|
||||
type: 'GET',
|
||||
url: 'https://mb3admin.com/admin/service/statistics/appAccess?application=AndroidV1&deviceId=' + deviceId
|
||||
return fetch('https://mb3admin.com/admin/service/statistics/appAccess?application=AndroidV1&deviceId=' + deviceId, {
|
||||
method: 'GET'
|
||||
|
||||
}).then(function () {
|
||||
}).then(function (response) {
|
||||
|
||||
appStorage.setItem(cacheKey, 'true');
|
||||
return true;
|
||||
if (response.status == 404) {
|
||||
appStorage.setItem(cacheKey, 'false');
|
||||
} else if (response.status < 400) {
|
||||
appStorage.setItem(cacheKey, 'true');
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}, function (e) {
|
||||
|
||||
if (e.status == 404) {
|
||||
appStorage.setItem(cacheKey, 'false');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
|
59
dashboard-ui/cordova/android/immersive.js
vendored
59
dashboard-ui/cordova/android/immersive.js
vendored
|
@ -1,59 +0,0 @@
|
|||
(function () {
|
||||
|
||||
function onSuccess() {
|
||||
Logger.log('Immersive mode succeeded');
|
||||
}
|
||||
|
||||
function onError() {
|
||||
Logger.log('Immersive mode failed');
|
||||
}
|
||||
|
||||
//// Is this plugin supported?
|
||||
//AndroidFullScreen.isSupported();
|
||||
|
||||
//// Is immersive mode supported?
|
||||
//AndroidFullScreen.isImmersiveModeSupported(onSuccess, onError);
|
||||
|
||||
//// The width of the screen in immersive mode
|
||||
//AndroidFullScreen.immersiveWidth(trace, onError);
|
||||
|
||||
//// The height of the screen in immersive mode
|
||||
//AndroidFullScreen.immersiveHeight(trace, onError);
|
||||
|
||||
//// Hide system UI until user interacts
|
||||
//AndroidFullScreen.leanMode(onSuccess, onError);
|
||||
|
||||
//// Show system UI
|
||||
//AndroidFullScreen.showSystemUI(onSuccess, onError);
|
||||
|
||||
//// Extend your app underneath the system UI (Android 4.4+ only)
|
||||
//AndroidFullScreen.showUnderSystemUI(onSuccess, onError);
|
||||
|
||||
//// Hide system UI and keep it hidden (Android 4.4+ only)
|
||||
//AndroidFullScreen.immersiveMode(onSuccess, onError);
|
||||
|
||||
function updateFromSetting(leaveFullScreen) {
|
||||
|
||||
if (AppSettings.enableFullScreen()) {
|
||||
AndroidFullScreen.immersiveMode(onSuccess, onError);
|
||||
}
|
||||
else if (leaveFullScreen) {
|
||||
AndroidFullScreen.showSystemUI(onSuccess, onError);
|
||||
}
|
||||
}
|
||||
|
||||
Dashboard.ready(function () {
|
||||
|
||||
Logger.log('binding fullscreen to MediaController');
|
||||
|
||||
updateFromSetting(false);
|
||||
|
||||
$(AppSettings).on('settingupdated', function (e, key) {
|
||||
|
||||
if (key == 'enableFullScreen') {
|
||||
updateFromSetting(true);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue