LP#1731496 Avoid PhantomJS BroadcastChannel failure user/berick/lp1731496-broadcast-channel-phantom-fix
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Nov 2017 16:39:12 +0000 (11:39 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 10 Nov 2017 15:12:31 +0000 (10:12 -0500)
commit2abe27378a6205f1529fa273a9f2867f9cd2696a
tree86f07dfed22f5d268858c19ada11a29119610049
parenta4c36a7f0e258614cc659c9ee5b5e96829955dcd
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>
Open-ILS/web/js/ui/default/staff/services/auth.js