Frontend: Fix makeArray function to work for non-strings

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-01-25 14:12:46 +00:00
parent 6e7248dafb
commit c6b65c8baf

View File

@ -19,7 +19,7 @@ async function storageAvailable(type) { // Currently not used
/* Array Converter /* Array Converter
Converts a string to a single item array */ Converts a string to a single item array */
async function makeArray(data) { async function makeArray(data) {
if (typeof data == "string") { if (!Array.isArray(data)) {
var array = []; var array = [];
array.push(data); array.push(data);
return array; return array;