chore: migrate deprecated util.isArray

Deprecated: Use Array.isArray() instead.

Source: https://nodejs.org/docs/latest-v18.x/api/util.html#utilisarrayobject
This commit is contained in:
Rotzbua
2024-05-25 22:55:09 +02:00
parent 3fd2d07c75
commit 9b86874c2d
7 changed files with 13 additions and 13 deletions

View File

@@ -70,7 +70,7 @@ function serveFilesFromTheme(themeValue, themeApp, directory, baseDirectory) {
var result = [];
if (themeValue) {
var array = themeValue;
if (!util.isArray(array)) {
if (!Array.isArray(array)) {
array = [array];
}