mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
Small improvements
This commit is contained in:
parent
19d3b559da
commit
0c38f42197
13 changed files with 54 additions and 83 deletions
|
|
@ -44,15 +44,19 @@ class Audio {
|
|||
}
|
||||
|
||||
createNewObject() {
|
||||
const player = window.Audio ? new window.Audio() : null;
|
||||
if (player && player.canPlayType && player.pause && player.play) {
|
||||
player.preload = 'none';
|
||||
player.loop = false;
|
||||
player.autoplay = false;
|
||||
player.muted = false;
|
||||
}
|
||||
try {
|
||||
const player = window.Audio ? new window.Audio() : null;
|
||||
if (player && player.canPlayType && player.pause && player.play) {
|
||||
player.preload = 'none';
|
||||
player.loop = false;
|
||||
player.autoplay = false;
|
||||
player.muted = false;
|
||||
}
|
||||
|
||||
return player;
|
||||
return player;
|
||||
} catch (e) {} // eslint-disable-line no-empty
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
paused() {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ class BrandingAdminSettings {
|
|||
];
|
||||
});
|
||||
|
||||
this.loginPowered = ko.observable(!!settingsGet('LoginPowered'));
|
||||
this.community = RL_COMMUNITY || AppStore.community();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -90,11 +90,6 @@ class BrandingPremAdminSettings extends BrandingAdminSettings {
|
|||
});
|
||||
});
|
||||
|
||||
this.loginPowered.subscribe((value) => {
|
||||
Remote.saveAdminConfig(null, {
|
||||
'LoginPowered': boolToAjax(value)
|
||||
});
|
||||
});
|
||||
}, Magics.Time50ms);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,6 @@ class LoginAdminView extends AbstractViewNext {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
this.loginPowered = !!Settings.settingsGet('LoginPowered');
|
||||
|
||||
this.mobile = !!Settings.appSettingsGet('mobile');
|
||||
this.mobileDevice = !!Settings.appSettingsGet('mobileDevice');
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ class LoginUserView extends AbstractViewNext {
|
|||
this.additionalCodeSignMe = ko.observable(false);
|
||||
|
||||
this.logoImg = trim(Settings.settingsGet('LoginLogo'));
|
||||
this.loginPowered = !!Settings.settingsGet('LoginPowered');
|
||||
this.loginDescription = trim(Settings.settingsGet('LoginDescription'));
|
||||
|
||||
this.mobile = !!Settings.appSettingsGet('mobile');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue