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

Commit

Permalink
feat: pass next version server param to startApplication in renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed Jun 8, 2021
1 parent e29bcb1 commit c2880ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascripts/renderer/renderer.ts
Expand Up @@ -4,6 +4,7 @@ import { Bridge } from '@web/services/bridge';

declare const BUGSNAG_API_KEY: string;
declare const DEFAULT_SYNC_SERVER: string;
declare const NEXT_VERSION_SYNC_SERVER: string;
declare global {
interface Window {
ElectronValence: any;
Expand Down Expand Up @@ -42,7 +43,8 @@ window._bugsnag_api_key = BUGSNAG_API_KEY;
window.startApplication(
// eslint-disable-next-line no-undef
DEFAULT_SYNC_SERVER || 'https://sync.standardnotes.org',
window.bridge
window.bridge,
NEXT_VERSION_SYNC_SERVER || 'https://api.standardnotes.com'
);

await new Promise((resolve) =>
Expand Down

0 comments on commit c2880ca

Please sign in to comment.