mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-30 16:34:45 +08:00
fix(analytics): fix errors in onboarding flow
This commit is contained in:
parent
7c870d7cd2
commit
81c8cd6a8b
1 changed files with 2 additions and 2 deletions
|
@ -60,13 +60,13 @@ export function buildGmailAuthURL(sessionKey) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function buildWelcomeURL() {
|
export function buildWelcomeURL() {
|
||||||
const identity = IdentityStore().identity();
|
const identity = IdentityStore.identity();
|
||||||
if (!identity) { NylasEnv.reportError(new Error("Can't find Nylas ID")) }
|
if (!identity) { NylasEnv.reportError(new Error("Can't find Nylas ID")) }
|
||||||
return url.format({
|
return url.format({
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
host: 'nylas.com/welcome',
|
host: 'nylas.com/welcome',
|
||||||
query: {
|
query: {
|
||||||
n: base64url(id),
|
n: base64url(identity.id),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue