We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82534c5 commit 225463bCopy full SHA for 225463b
default-templates/new-account/index.html
@@ -77,9 +77,11 @@ <h1>Account settings</h1>
77
button.innerText = loggedIn ? 'Log out' : 'Log in';
78
button.classList.remove('btn-default');
79
button.classList.add(loggedIn ? 'btn-danger' : 'btn-primary');
80
- var sessionOrigin = getOriginFromWebId(session.webId);
81
- var isOwner = sessionOrigin === location.origin;
82
- accountSettings.classList.toggle('hidden', !isOwner);
+ if (loggedIn) {
+ var sessionOrigin = getOriginFromWebId(session.webId);
+ var isOwner = sessionOrigin === location.origin;
83
+ accountSettings.classList.toggle('hidden', !isOwner);
84
+ }
85
});
86
87
button.addEventListener('click', function () {
0 commit comments