LP#1731496 Avoid PhantomJS BroadcastChannel failure
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Nov 2017 16:39:12 +0000 (11:39 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 14 Feb 2018 18:17:46 +0000 (13:17 -0500)
commit6b8d0342473dc07f5694bd2ac688ee8a9787e16e
treeee28301ef0430423a3ef64bb9faa1f91e86a7547
parent3352914c12dbe71ab4c2924291c7ba186d48aa17
LP#1731496 Avoid PhantomJS BroadcastChannel failure

Avoid attempts to create BroadcastChannel objects in contexts where the
object does not exist.  Specifically, allow PhantomJS to run unit tesst
without dying on:

ReferenceError: Can't find variable: BroadcastChannel

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/services/auth.js