mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Small code cleanups and fix translations
This commit is contained in:
parent
b31bf3d7f5
commit
7ccc44616d
54 changed files with 288 additions and 426 deletions
|
|
@ -1,18 +1,12 @@
|
|||
|
||||
$(function () {
|
||||
if (window.snowFall && window.rl && !window.rl.settingsGet('Auth'))
|
||||
{
|
||||
var
|
||||
sUserAgent = (navigator.userAgent || '').toLowerCase(),
|
||||
bIsiOSDevice = -1 < sUserAgent.indexOf('iphone') || -1 < sUserAgent.indexOf('ipod') || -1 < sUserAgent.indexOf('ipad'),
|
||||
bIsAndroidDevice = -1 < sUserAgent.indexOf('android')
|
||||
;
|
||||
|
||||
if (!bIsiOSDevice && !bIsAndroidDevice)
|
||||
if (!/iphone|ipod|ipad|android/i.test(navigator.userAgent))
|
||||
{
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
if (window.snowFall && window.rl && !rl.settings.get('Auth'))
|
||||
{
|
||||
window.snowFall.snow(document.getElementsByTagName('body'), {
|
||||
shadow: true, round: true, minSize: 2, maxSize: 5
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue