We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 958a6ef + e2c2d01 commit 72a3a69Copy full SHA for 72a3a69
lib/acl-checker.js
@@ -28,7 +28,14 @@ class ACLChecker {
28
constructor (resource, options = {}) {
29
this.resource = resource
30
this.resourceUrl = new URL(resource)
31
- this.agentOrigin = options.strictOrigin && options.agentOrigin ? rdf.sym(options.agentOrigin) : null
+ this.agentOrigin = null
32
+ try {
33
+ if (options.strictOrigin && options.agentOrigin) {
34
+ this.agentOrigin = rdf.sym(options.agentOrigin)
35
+ }
36
+ } catch (e) {
37
+ // noop
38
39
this.fetch = options.fetch
40
this.fetchGraph = options.fetchGraph
41
this.trustedOrigins = options.strictOrigin && options.trustedOrigins ? options.trustedOrigins.map(trustedOrigin => rdf.sym(trustedOrigin)) : null
0 commit comments