config/packages/dream2nix/overrides/nodejs/shinobi/0008-use-__dirname-in-ejs.patch

24 lines
843 B
Diff
Raw Normal View History

From 978dd533a08cc1155819be65598055f7232ad8c8 Mon Sep 17 00:00:00 2001
From: Max <max@privatevoid.net>
Date: Tue, 15 Mar 2022 19:18:02 +0100
Subject: [PATCH 8/9] use __dirname in ejs
---
web/pages/blocks/settings.ejs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/pages/blocks/settings.ejs b/web/pages/blocks/settings.ejs
index 39d1b9b..7baed45 100644
--- a/web/pages/blocks/settings.ejs
+++ b/web/pages/blocks/settings.ejs
@@ -1,5 +1,5 @@
<!--Settings Window-->
-<% var audioFiles = fs.readdirSync('./web/libs/audio') %>
+<% var audioFiles = fs.readdirSync(__dirname + '/web/libs/audio') %>
<div class="modal fade medium dark" id="settings" tabindex="-1" role="dialog" aria-labelledby="settingsLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<form class="modal-content">
--
2.35.1