Cleanup JS and better terser compression

This commit is contained in:
djmaze 2020-10-09 11:58:15 +02:00
parent 058217de02
commit ba7ed497b2
20 changed files with 247 additions and 298 deletions

4
dev/bootstrap.js vendored
View file

@ -124,8 +124,8 @@ export default (App) => {
window.__APP_BOOT = fErrorCallback => {
const doc = document,
cb = () => setTimeout(() => {
if (window.rainloopTEMPLATES && rainloopTEMPLATES[0]) {
doc.getElementById('rl-templates').innerHTML = rainloopTEMPLATES[0];
if (rl.TEMPLATES) {
doc.getElementById('rl-templates').innerHTML = rl.TEMPLATES;
setTimeout(() => App.bootstart(), 10);
} else {
fErrorCallback();