Skip to content

Commit af8cd60

Browse files
committed
Added URL that might fix hack and remove eslint-disable-next-line
Based on some feedback from Vincent
1 parent 1bf0647 commit af8cd60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/acl-control.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,9 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
614614

615615
// @@ TODO: The methods used for targetIsStorage are HACKs - it should not be relied upon, and work is
616616
// @@ underway to standardize a behavior that does not rely upon this hack
617-
// eslint-disable-next-line no-undef
618-
const targetIsStorage = kb.holds(targetDoc, UI.ns.rdf('type'), UI.ns.space('Storage'), targetACLDoc) || (location && location.pathname === '/')
617+
// @@ hopefully fixed as part of https://github.com/solid/data-interoperability-panel/issues/10
618+
const targetIsStorage = kb.holds(targetDoc, UI.ns.rdf('type'), UI.ns.space('Storage'), targetACLDoc) ||
619+
(window.location && window.location.pathname === '/')
619620

620621
if (!targetIsStorage && targetDocDir) {
621622
UI.acl.getACLorDefault($rdf.sym(targetDocDir), function (ok2, p22, targetDoc2, targetACLDoc2, defaultHolder2, defaultACLDoc2) {

0 commit comments

Comments
 (0)