LP#1731496 Avoid PhantomJS BroadcastChannel failure
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Nov 2017 16:39:12 +0000 (11:39 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 10 Nov 2017 17:16:39 +0000 (12:16 -0500)
commit14a567ab209c4d7e95dcde5b334fd8a71fba23bf
treecb82a6f97caf44c924e6c8dcc05463a10af644e3
parentf26c0af05900f3457a69b23dffb5ccfe3630f4cc
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