mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user