mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Array.isArray to isArray
Array.isNotEmpty to isNonEmptyArray
This commit is contained in:
parent
986b8f056b
commit
0b64083543
30 changed files with 82 additions and 69 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import ko from 'ko';
|
||||
import { $htmlCL, leftPanelDisabled, Settings, SettingsGet } from 'Common/Globals';
|
||||
import { isArray } from 'Common/Utils';
|
||||
|
||||
export const ThemeStore = {
|
||||
themes: ko.observableArray(),
|
||||
|
|
@ -10,7 +11,7 @@ export const ThemeStore = {
|
|||
populate: function(){
|
||||
const themes = Settings.app('themes');
|
||||
|
||||
this.themes(Array.isArray(themes) ? themes : []);
|
||||
this.themes(isArray(themes) ? themes : []);
|
||||
this.theme(SettingsGet('Theme'));
|
||||
if (!this.isMobile()) {
|
||||
this.userBackgroundName(SettingsGet('UserBackgroundName'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue