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:
8
app/assets/javascripts/version.ts
Normal file
8
app/assets/javascripts/version.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/** Declared in webpack config */
|
||||
declare const __VERSION__: string;
|
||||
declare const __DESKTOP__: boolean;
|
||||
declare const __WEB__: boolean;
|
||||
|
||||
export const AppVersion = __VERSION__;
|
||||
export const IsDesktopPlatform = __DESKTOP__;
|
||||
export const IsWebPlatform = __WEB__;
|
||||
Reference in New Issue
Block a user