We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcc5f90 commit 78ab9d2Copy full SHA for 78ab9d2
1 file changed
lib/handlers/get.js
@@ -89,7 +89,7 @@ async function handler (req, res, next) {
89
90
if (useDataBrowser) {
91
res.set('Content-Type', 'text/html')
92
- const defaultDataBrowser = _path.join(__dirname, '../../node_modules/mashlib/dist/index.html')
+ const defaultDataBrowser = require.resolve('mashlib/dist/index.html')
93
const dataBrowserPath = ldp.dataBrowserPath === 'default' ? defaultDataBrowser : ldp.dataBrowserPath
94
debug(' sending data browser file: ' + dataBrowserPath)
95
res.sendFile(dataBrowserPath)
0 commit comments