We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eca386c commit 82534c5Copy full SHA for 82534c5
1 file changed
default-templates/new-account/index.html
@@ -87,6 +87,9 @@ <h1>Account settings</h1>
87
});
88
89
function getOriginFromWebId(webId) {
90
+ if (window.URL.prototype) {
91
+ return new URL(webId).origin;
92
+ }
93
var uriParts = webId.split('/');
94
return uriParts[0] + '//' + uriParts[2];
95
}
0 commit comments