LP#1775719 Modify array check for Phantomjs; reduce logging;
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Aug 2018 14:20:54 +0000 (10:20 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 10 Aug 2018 14:22:20 +0000 (10:22 -0400)
commit6d98ced94170e96ae69a7c4baa3e80377b8de04f
tree23d3b3a8eaaa43ced5864fbef7c0f8cbb9a11926
parent91d838f48e5931d1e599a7473a9ffce9dbedad47
LP#1775719 Modify array check for Phantomjs; reduce logging;

PhantomJS doesn't support the handy [1,2,3].includes(1) function, so
replace it with the tried-and-true indexOf();

Avoid logging errors on failure to connect to the shared offline worker
when running within phantomjs.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/lovefield.js