Skip to content

Commit

Permalink
Merge pull request #41 from gary-kim/fix/noid/auto-logout
Browse files Browse the repository at this point in the history
Fix login page issue
  • Loading branch information
gary-kim authored May 11, 2020
2 parents a6a09db + cbd8f3e commit 63a7cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function main () {
originalTitle = document.title;

iframe = document.getElementById('riot-iframe');
if (!window.location.hash && loadState('riotchat', 'disable_custom_urls') === 'true') {
if (!window.location.hash && loadState('riotchat', 'disable_custom_urls') === 'true' && !window.localStorage.getItem('mx_user_id')) {
iframe.src = generateUrl('/apps/riotchat/riot/') + '#/login';
window.location.hash = '#/login';
} else {
Expand Down

0 comments on commit 63a7cdc

Please sign in to comment.