fix: func param order

This commit is contained in:
Mo Bitar
2021-10-07 08:08:38 -05:00
parent b015346f1a
commit 92699d23f4
2 changed files with 4 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ const startApplication: StartApplication = async function startApplication(
defaultSyncServerHost: string, defaultSyncServerHost: string,
bridge: Bridge, bridge: Bridge,
enableUnfinishedFeatures: boolean, enableUnfinishedFeatures: boolean,
webSocketUrl: string, webSocketUrl: string
) { ) {
if (reloadHiddenFirefoxTab()) { if (reloadHiddenFirefoxTab()) {
return; return;
@@ -193,10 +193,10 @@ const startApplication: StartApplication = async function startApplication(
if (IsWebPlatform) { if (IsWebPlatform) {
startApplication( startApplication(
(window as any)._default_sync_server, (window as any)._default_sync_server as string,
new BrowserBridge(AppVersion), new BrowserBridge(AppVersion),
(window as any)._websocket_url, (window as any)._enable_unfinished_features as boolean,
(window as any)._enable_unfinished_features, (window as any)._websocket_url as string,
); );
} else { } else {
(window as any).startApplication = startApplication; (window as any).startApplication = startApplication;

View File

@@ -19,7 +19,6 @@ export const NoSubscription: FunctionalComponent<{
if (url) { if (url) {
const currentUrl = window.location.href; const currentUrl = window.location.href;
const successUrl = isDesktopApplication() ? `standardnotes://${currentUrl}` : currentUrl; const successUrl = isDesktopApplication() ? `standardnotes://${currentUrl}` : currentUrl;
console.log(successUrl);
window.location.assign(`${url}&success_url=${successUrl}`); window.location.assign(`${url}&success_url=${successUrl}`);
} else { } else {
setPurchaseFlowError(errorMessage); setPurchaseFlowError(errorMessage);