chore: ugprade snjs deps (#898)

This commit is contained in:
Mo
2022-02-24 12:57:32 -06:00
committed by GitHub
parent 7fe0873bbb
commit c3d849d204
19 changed files with 163 additions and 182 deletions

View File

@@ -75,9 +75,9 @@ export class AccountMenuState {
this.appEventListeners.push(
this.application.addEventObserver(async () => {
runInAction(() => {
if (isDev && window._devAccountServer) {
this.setServer(window._devAccountServer);
this.application.setCustomHost(window._devAccountServer);
if (isDev && window.devAccountServer) {
this.setServer(window.devAccountServer);
this.application.setCustomHost(window.devAccountServer);
} else {
this.setServer(this.application.getHost());
}

View File

@@ -62,7 +62,7 @@ type ObserverCallback = (event: AppStateEvent, data?: any) => Promise<void>;
export class AppState {
readonly enableUnfinishedFeatures: boolean =
window?._enable_unfinished_features;
window?.enabledUnfinishedFeatures;
application: WebApplication;
observers: ObserverCallback[] = [];

View File

@@ -25,7 +25,7 @@ export const SMART_TAGS_FEATURE_NAME = 'Smart Tags';
*/
export class FeaturesState {
readonly enableUnfinishedFeatures: boolean =
window?._enable_unfinished_features;
window?.enabledUnfinishedFeatures;
_hasFolders = false;
_hasSmartTags = false;