add site_id param to /auth request

This commit is contained in:
igoradamenko
2018-06-27 11:07:54 +03:00
parent 030f26bbef
commit 43099edf06
+2 -2
View File
@@ -2,7 +2,7 @@ import { h, Component } from 'preact';
import api from 'common/api';
import { BASE_URL, NODE_ID, COMMENT_NODE_CLASSNAME_PREFIX, DEFAULT_SORT, LS_SORT_KEY, MAX_SHOWN_ROOT_COMMENTS } from 'common/constants';
import { url, maxShownComments } from 'common/settings';
import { siteId, url, maxShownComments } from 'common/settings';
import store from 'common/store';
import AuthPanel from 'components/auth-panel';
@@ -100,7 +100,7 @@ export default class Root extends Component {
}
onSignIn(provider) {
const newWindow = window.open(`${BASE_URL}/auth/${provider}/login?from=${encodeURIComponent(location.href)}`);
const newWindow = window.open(`${BASE_URL}/auth/${provider}/login?from=${encodeURIComponent(location.href)}&site=${siteId}`);
let secondsPass = 0;
const checkMsDelay = 100;