Skip to content

Commit

Permalink
Fixed account import by hash for new users (after agreement on terms …
Browse files Browse the repository at this point in the history
…of use)
  • Loading branch information
On1x committed Sep 22, 2023
1 parent e4756ad commit 08b9b50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14895,7 +14895,9 @@ var terms_of_user_scroll=function(){
}
}
}
var terms_of_use_redirect=false;
function show_terms_of_use(){
terms_of_use_redirect=window.location.hash.substr(1);
localStorage.removeItem('terms_of_use_accept');
terms_of_use_accept=false;
$('body').removeClass('loaded');
Expand Down Expand Up @@ -15123,4 +15125,10 @@ function main_app(){
setTimeout(function(){window.onresize(true)},20);
console.log('The orientation of the device is now '+screen.orientation.angle,screen.orientation);
});

//add redirect after terms of use accept for saved window location hash (import account, for example)
if(false!==terms_of_use_redirect){
document.location.hash=terms_of_use_redirect;
terms_of_use_redirect=false;
}
}

0 comments on commit 08b9b50

Please sign in to comment.