Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
fix: const declaration location
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Nov 9, 2021
1 parent eb589da commit 66367f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/application.ts
Expand Up @@ -36,6 +36,8 @@ type MobileServices = {
statusManager: StatusManager;
};

const IsDev = VersionInfo.bundleIdentifier?.includes('dev');

export class MobileApplication extends SNApplication {
private MobileServices!: MobileServices;
public editorGroup: EditorGroup;
Expand All @@ -46,7 +48,6 @@ export class MobileApplication extends SNApplication {
static previouslyLaunched: boolean = false;

constructor(deviceInterface: MobileDeviceInterface, identifier: string) {
const dev = VersionInfo.bundleIdentifier?.includes('dev');
super(
Environment.Mobile,
platformFromString(Platform.OS),
Expand All @@ -60,12 +61,12 @@ export class MobileApplication extends SNApplication {
with: ComponentManager,
},
],
dev
IsDev
? 'https://api-dev.standardnotes.com'
: 'https://api.standardnotes.com',
version,
true,
dev
IsDev
? 'wss://sockets-dev.standardnotes.com'
: 'wss://sockets.standardnotes.com'
);
Expand Down

0 comments on commit 66367f4

Please sign in to comment.