aboutsummaryrefslogtreecommitdiff
path: root/viewer/vue.config.js
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 20:54:06 +0100
committerZero~Informatique2019-12-21 20:54:06 +0100
commitdd7e1ec5bb5f9d8ad5aab2c99e80146958e592a0 (patch)
treec9504537a0a9c4c3650e20f4cee712bb8c053080 /viewer/vue.config.js
parentd589c4d9fa0f177aa20cf7de70227a9e23e75316 (diff)
downloadldgallery-dd7e1ec5bb5f9d8ad5aab2c99e80146958e592a0.tar.gz
viewer: Fixed devServer for URL encoded filenames
Disabled a buggy ESLint rule
Diffstat (limited to 'viewer/vue.config.js')
-rw-r--r--viewer/vue.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewer/vue.config.js b/viewer/vue.config.js
index 3bb56e5..f116619 100644
--- a/viewer/vue.config.js
+++ b/viewer/vue.config.js
@@ -15,7 +15,7 @@ module.exports = {
15 app.get("/gallery/*", (req, res) => { 15 app.get("/gallery/*", (req, res) => {
16 const fs = require("fs"); 16 const fs = require("fs");
17 const fileName = req.url.replace(/^\/gallery/, "../example"); 17 const fileName = req.url.replace(/^\/gallery/, "../example");
18 const file = fs.readFileSync(fileName); 18 const file = fs.readFileSync(decodeURIComponent(fileName));
19 res.end(file); 19 res.end(file);
20 }); 20 });
21 } 21 }