diff options
author | 2019-09-02 11:47:32 +0200 | |
---|---|---|
committer | 2019-09-02 11:47:32 +0200 | |
commit | a7e2742d9269c098c37cc84b81ca9ef4863ec93a (patch) | |
tree | 6c48c5a157c28e303fd091e008857b3cd109ac8e /src/stores | |
parent | Add "see all options" (diff) | |
download | ferdium-app-a7e2742d9269c098c37cc84b81ca9ef4863ec93a.tar.gz ferdium-app-a7e2742d9269c098c37cc84b81ca9ef4863ec93a.tar.zst ferdium-app-a7e2742d9269c098c37cc84b81ca9ef4863ec93a.zip |
Add CTA for pro upgrade
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/UserStore.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 5d0037b3c..e23106462 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -4,7 +4,7 @@ import jwt from 'jsonwebtoken'; | |||
4 | import localStorage from 'mobx-localstorage'; | 4 | import localStorage from 'mobx-localstorage'; |
5 | import ms from 'ms'; | 5 | import ms from 'ms'; |
6 | 6 | ||
7 | import { isDevMode } from '../environment'; | 7 | import { isDevMode, WEBSITE } from '../environment'; |
8 | import Store from './lib/Store'; | 8 | import Store from './lib/Store'; |
9 | import Request from './lib/Request'; | 9 | import Request from './lib/Request'; |
10 | import CachedRequest from './lib/CachedRequest'; | 10 | import CachedRequest from './lib/CachedRequest'; |
@@ -381,6 +381,15 @@ export default class UserStore extends Store { | |||
381 | } | 381 | } |
382 | } | 382 | } |
383 | 383 | ||
384 | getAuthURL(url) { | ||
385 | const parsedUrl = new URL(url); | ||
386 | const params = new URLSearchParams(parsedUrl.search.slice(1)); | ||
387 | |||
388 | params.append('authToken', this.authToken); | ||
389 | |||
390 | return `${parsedUrl.origin}${parsedUrl.pathname}?${params.toString()}`; | ||
391 | } | ||
392 | |||
384 | async _migrateUserLocale() { | 393 | async _migrateUserLocale() { |
385 | await this.getUserInfoRequest._promise; | 394 | await this.getUserInfoRequest._promise; |
386 | 395 | ||