mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Merge language into index template
This commit is contained in:
parent
c3c1fc2c0e
commit
fb98ca6fe7
10 changed files with 354 additions and 300 deletions
12
dev/bootstrap.js
vendored
12
dev/bootstrap.js
vendored
|
|
@ -1,4 +1,4 @@
|
|||
import { doc, elementById, dropdownVisibility, Settings } from 'Common/Globals';
|
||||
import { doc, dropdownVisibility, Settings } from 'Common/Globals';
|
||||
import { i18n } from 'Common/Translator';
|
||||
|
||||
import { root } from 'Common/Links';
|
||||
|
|
@ -135,15 +135,9 @@ export default (App) => {
|
|||
});
|
||||
};
|
||||
|
||||
window.__APP_BOOT = fErrorCallback => {
|
||||
window.__APP_BOOT = () => {
|
||||
const cb = () => setTimeout(() => {
|
||||
if (rl.TEMPLATES) {
|
||||
elementById('rl-templates').innerHTML = rl.TEMPLATES;
|
||||
setTimeout(() => App.bootstart(), 10);
|
||||
} else {
|
||||
fErrorCallback();
|
||||
}
|
||||
|
||||
setTimeout(() => App.bootstart(), 10);
|
||||
window.__APP_BOOT = null;
|
||||
}, 10);
|
||||
('loading' !== doc.readyState) ? cb() : doc.addEventListener('DOMContentLoaded', cb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue