From 978dd533a08cc1155819be65598055f7232ad8c8 Mon Sep 17 00:00:00 2001 From: Max 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 @@ -<% var audioFiles = fs.readdirSync('./web/libs/audio') %> +<% var audioFiles = fs.readdirSync(__dirname + '/web/libs/audio') %>