There was an error while loading. Please reload this page.
1 parent 93816ec commit 62b3720Copy full SHA for 62b3720
1 file changed
src/authn/authn.ts
@@ -23,7 +23,7 @@ export { solidAuthClient }
23
24
// Look for and load the User who has control over it
25
export function findOriginOwner (doc: $rdf.NamedNode | string): string | boolean {
26
- const uri = (doc as $rdf.NamedNode).uri || doc as string
+ const uri = (typeof doc === 'string') ? doc : doc.uri
27
const i = uri.indexOf('://')
28
if (i < 0) return false
29
const j = uri.indexOf('/', i + 3)
0 commit comments