mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Underscore.js _.delay() to native setTimeout()
This commit is contained in:
parent
a82575a830
commit
43c92a82e6
29 changed files with 67 additions and 82 deletions
|
|
@ -131,7 +131,7 @@ class AbstractApp extends AbstractBoot {
|
|||
}
|
||||
|
||||
redirectToAdminPanel() {
|
||||
_.delay(() => {
|
||||
setTimeout(() => {
|
||||
window.location.href = rootAdmin();
|
||||
}, Magics.Time100ms);
|
||||
}
|
||||
|
|
@ -174,7 +174,7 @@ class AbstractApp extends AbstractBoot {
|
|||
customLogoutLink = customLogoutLink || (admin ? rootAdmin() : rootUser());
|
||||
|
||||
if (logout && window.location.href !== customLogoutLink) {
|
||||
_.delay(() => {
|
||||
setTimeout(() => {
|
||||
if (inIframe && window.parent) {
|
||||
window.parent.location.href = customLogoutLink;
|
||||
} else {
|
||||
|
|
@ -188,7 +188,7 @@ class AbstractApp extends AbstractBoot {
|
|||
setHash(root(), true);
|
||||
routeOff();
|
||||
|
||||
_.delay(() => {
|
||||
setTimeout(() => {
|
||||
if (inIframe && window.parent) {
|
||||
window.parent.location.reload();
|
||||
} else {
|
||||
|
|
@ -233,7 +233,7 @@ class AbstractApp extends AbstractBoot {
|
|||
|
||||
initOnStartOrLangChange(initNotificationLanguage);
|
||||
|
||||
_.delay(windowResizeCallback, Magics.Time1s);
|
||||
setTimeout(windowResizeCallback, Magics.Time1s);
|
||||
|
||||
Events.sub('ssm.mobile-enter', () => {
|
||||
leftPanelDisabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue