Frontend: Fix makeArray function to work for non-strings
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
6e7248dafb
commit
c6b65c8baf
@ -19,7 +19,7 @@ async function storageAvailable(type) { // Currently not used
|
||||
/* Array Converter
|
||||
Converts a string to a single item array */
|
||||
async function makeArray(data) {
|
||||
if (typeof data == "string") {
|
||||
if (!Array.isArray(data)) {
|
||||
var array = [];
|
||||
array.push(data);
|
||||
return array;
|
||||
|
Reference in New Issue
Block a user