mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Remove more RainLoop standard/premium licensed code
This commit is contained in:
parent
2a1ccc5d24
commit
4f8b07fe85
18 changed files with 3 additions and 326 deletions
17
dev/boot.js
17
dev/boot.js
|
|
@ -47,13 +47,6 @@ const
|
|||
p.end();
|
||||
},
|
||||
|
||||
writeCSS = css => {
|
||||
const style = doc.createElement('style');
|
||||
style.type = 'text/css';
|
||||
style.textContent = css;
|
||||
doc.head.append(style);
|
||||
},
|
||||
|
||||
loadScript = src => {
|
||||
if (!src) {
|
||||
throw new Error('src should not be empty.');
|
||||
|
|
@ -149,16 +142,6 @@ win.rl = {
|
|||
eId('app-theme-link').href = appData.NewThemeLink;
|
||||
}
|
||||
|
||||
appData.IncludeCss && writeCSS(appData.IncludeCss);
|
||||
|
||||
if (appData.IncludeBackground) {
|
||||
const img = appData.IncludeBackground.replace('{{USER}}', rl.hash.get() || '0');
|
||||
if (img) {
|
||||
htmlCL.add('UserBackground');
|
||||
doc.body.style.backgroundImage = "url("+img+")";
|
||||
}
|
||||
}
|
||||
|
||||
loadScript(appData.StaticLibJsLink)
|
||||
.then(() => Promise.all([loadScript(appData.TemplatesLink), loadScript(appData.LangLink)]))
|
||||
.then(() => loadScript(appData.StaticAppJsLink))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue