Skip to content

Conversation

jeff-zucker
Copy link
Member

Hopefully this will work when served from the root.

Hopefully this will work when served from the root.
let user = UI.authn.currentUser();
if( user ) {
document.getElementById('prototype').style.display = "none";
var podRoot = user.uri.replace(/profile.*$/,'');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does make and assumption about the form of the webid, but if that assumption fails, its ok as it will default to showing the user rather than the pod, which will be fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and also, since this is a change to NSS, not mashlib, the assumption should hold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants