Hotfix/logout

Added logout
endpoint && endpoint.replace(/^[a-z]+:\/\//i, '').search(location.hostname) !== 0;