fix: func param order
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user