Skip to content

Commit f79f7a2

Browse files
committed
Update databrowser.
Closes #583.
1 parent 3c473c3 commit f79f7a2

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

static/databrowser.html

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@
22
<html id="docHTML">
33
<head>
44
<link type="text/css" rel="stylesheet" href="https://linkeddata.github.io/solid-app-set/style/tabbedtab.css" />
5+
<script>
6+
var $SOLID_GLOBAL_config = {
7+
popupUri: '/common/popup.html'
8+
}
9+
</script>
510
<script type="text/javascript" src="https://linkeddata.github.io/mashlib/dist/mashlib.min.js"></script>
6-
<script>
7-
document.addEventListener('DOMContentLoaded', function() {
8-
var UI = Mashlib
11+
<script>
12+
document.addEventListener('DOMContentLoaded', function () {
13+
var UI = Mashlib
914

10-
UI.rdf.Fetcher.crossSiteProxyTemplate = document.origin + '/proxy?uri={uri}'
15+
UI.rdf.Fetcher.crossSiteProxyTemplate = document.origin + '/proxy?uri={uri}'
1116

12-
UI.authn.checkUser()
13-
.then(function () {
14-
var uri = window.location.href
15-
window.document.title = uri
16-
17-
var subject = UI.rdf.namedNode(uri)
18-
UI.outline.GotoSubject(subject, true, undefined, true, undefined)
19-
})
20-
})
21-
</script>
17+
UI.authn.checkUser()
18+
.then(function () {
19+
var uri = window.location.href
20+
var dataUri = window.document.title = uri.slice(0, uri.lastIndexOf('/')+1) + ''
21+
var subject = UI.rdf.sym(dataUri)
22+
UI.outline.GotoSubject(subject, true, undefined, true, undefined)
23+
})
24+
})
25+
</script>
2226
</head>
2327
<body>
2428
<div class="TabulatorOutline" id="DummyUUID">

0 commit comments

Comments
 (0)