mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Dynamic load app.js/admin.js/sieve.js based on minification
This commit is contained in:
parent
088d6cab55
commit
ea25d9bce4
3 changed files with 20 additions and 27 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { addObservablesTo } from 'External/ko';
|
||||
import { staticLink } from 'Common/Links';
|
||||
import { FolderUserStore } from 'Stores/User/Folder';
|
||||
import { SettingsGet } from 'Common/Globals';
|
||||
|
||||
//export class UserSettingsFilters /*extends AbstractViewSettings*/ {
|
||||
export class UserSettingsFilters /*extends AbstractViewSettings*/ {
|
||||
|
|
@ -12,7 +12,7 @@ export class UserSettingsFilters /*extends AbstractViewSettings*/ {
|
|||
serverErrorDesc: ''
|
||||
});
|
||||
|
||||
rl.loadScript(staticLink('js/sieve.js')).then(() => {
|
||||
rl.loadScript(SettingsGet('StaticLibsJs').replace('/libs.', '/sieve.')).then(() => {
|
||||
const Sieve = window.Sieve;
|
||||
Sieve.folderList = FolderUserStore.folderList;
|
||||
Sieve.serverError.subscribe(value => this.serverError(value));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue