feat: pass web app version to snjs application (#623)

* feat: store web version in local storage

* feat: pass web app version to snjs application when creating WebApplication

* refactor: pass version in application constructor, remove unnecessary method

* refactor: move global variables declarations to separate files to avoid declaring them in all places where they are used

* refactor: better way to use global variables

* chore: add comment

* chore: make global constants pascal case

* chore: version bump for snjs

* chore: yarn.lock with correct snjs version

* chore: bump snjs version
This commit is contained in:
Vardan Hakobyan
2021-09-06 10:36:57 +04:00
committed by GitHub
parent b7d10810a5
commit 041d437bd4
7 changed files with 30 additions and 25 deletions

View File

@@ -24,6 +24,7 @@ import { IOService } from '@/services/ioService';
import { NativeExtManager } from '@/services/nativeExtManager';
import { StatusManager } from '@/services/statusManager';
import { ThemeManager } from '@/services/themeManager';
import { AppVersion } from '@/version';
type WebServices = {
appState: AppState;
@@ -63,6 +64,7 @@ export class WebApplication extends SNApplication {
identifier,
[],
defaultSyncServerHost,
AppVersion
);
this.$compile = $compile;
this.scope = scope;