Use Array.isArray instead of instanceof Array.

master
voussoir 2020-07-01 16:28:39 -07:00
parent b21e6a1206
commit e61d436791
1 changed files with 1 additions and 1 deletions

View File

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