More TypeScript

This commit is contained in:
Mo Bitar
2020-04-10 08:42:35 -05:00
parent e7651fe92b
commit b5b53fdc43
87 changed files with 256 additions and 2085 deletions

View File

@@ -5,7 +5,7 @@ import {
EncryptionIntents,
ApplicationService,
} from 'snjs';
import { AppStateEvents } from '@/services/state';
import { AppStateEvent } from '@/services/state';
const CACHED_THEMES_KEY = 'cachedThemes';
@@ -15,7 +15,7 @@ export class ThemeManager extends ApplicationService {
this.activeThemes = [];
setImmediate(() => {
this.unsubState = this.application.getAppState().addObserver((eventName, data) => {
if (eventName === AppStateEvents.DesktopExtsReady) {
if (eventName === AppStateEvent.DesktopExtsReady) {
this.activateCachedThemes();
}
});