Use Array.isArray instead of instanceof Array.

This commit is contained in:
voussoir 2020-07-01 16:28:39 -07:00
parent b21e6a1206
commit e61d436791

View file

@ -247,7 +247,7 @@ function easybake_form()
function tag_action_callback(response)
{
datas = response.data;
if (!(datas instanceof Array))
if (!Array.isArray(datas))
{
datas = [datas];
}