Solved issue #31

Solved https://github.com/privly/privly-applications/issues/31
This doesn't seem to work, because Index (History) doesn't use the shared files and it has its own pendingLogin() function. Also I realized I have to add this line in Help/js/new.js as well.