LP#1775719 Modify array check for Phantomjs; reduce logging; user/berick/lp1775719-phantomjs-repairs
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Aug 2018 14:20:54 +0000 (10:20 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 9 Aug 2018 14:31:43 +0000 (10:31 -0400)
commitf86a1265e5411fdbbf5c83cd4e34b12b1cf5dcc6
treeacc7b16d69e2e97b9a99f30e1008495e3288f3bd
parentaae6a29aa9ac4dde77e5068632159990ec600aab
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>
Open-ILS/web/js/ui/default/staff/services/lovefield.js