Unverified Commit 53bc363f authored by Zhou (Link)  Fang's avatar Zhou (Link) Fang Committed by GitHub
Browse files

made the sign in behaviour consistent among all browsers (#201)

parent ddd5676b
......@@ -109,18 +109,14 @@ class SignIn extends React.Component {
};
componentDidMount() {
// window.document.documentMode will return 11 if it's IE11
// and will return undefined for other browsers.
if (window.document.documentMode) {
// If returns a number, means it's IE[number]
const isSignInClicked = localStorage.getItem(IS_SIGN_IN_CLICKED_KEY);
const isSignInClicked = localStorage.getItem(IS_SIGN_IN_CLICKED_KEY);
// Check if the sign in button is clicked, if so, reload the page to get the q_session cookie ready.
if (isSignInClicked) {
localStorage.setItem(IS_SIGN_IN_CLICKED_KEY, '');
window.location.reload();
}
// Check if the sign in button is clicked, if so, reload the page to get the q_session cookie ready.
if (isSignInClicked) {
localStorage.setItem(IS_SIGN_IN_CLICKED_KEY, '');
window.location.reload();
}
if (getCurrentMode() === MODE_REACT_API) {
this.getCSRFToken();
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment