mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
inline baseUrl
This commit is contained in:
parent
013ad5bcde
commit
204f7ead52
2 changed files with 1 additions and 3 deletions
|
|
@ -13,7 +13,6 @@ const useUser = () => {
|
|||
setUser(state.ctx.content.auth ? state.ctx.content.auth.user : null);
|
||||
};
|
||||
core.on('NewModel', onNewState);
|
||||
onNewState();
|
||||
return () => {
|
||||
core.off('NewModel', onNewState);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ const ConsentCheckbox = require('./ConsentCheckbox');
|
|||
const styles = require('./styles');
|
||||
|
||||
const SIGNUP_FORM = 'signup';
|
||||
const baseUrl = 'https://www.strem.io';
|
||||
|
||||
const Intro = ({ queryParams }) => {
|
||||
const { core } = useServices();
|
||||
|
|
@ -90,7 +89,7 @@ const Intro = ({ queryParams }) => {
|
|||
const loginWithFacebook = React.useCallback(() => {
|
||||
FB.login((response) => {
|
||||
if (response.status === 'connected') {
|
||||
fetch(baseUrl + "/fb-login-with-token/" + encodeURIComponent(response.authResponse.accessToken), { timeout: 10 * 1000 })
|
||||
fetch('https://www.strem.io/fb-login-with-token/' + encodeURIComponent(response.authResponse.accessToken), { timeout: 10 * 1000 })
|
||||
.then((resp) => {
|
||||
if (resp.status < 200 || resp.status >= 300) {
|
||||
throw new Error('Login failed at getting token from Stremio with status ' + resp.status);
|
||||
|
|
|
|||
Loading…
Reference in a new issue