LP#1731496 Avoid PhantomJS BroadcastChannel failure user/csharp/lp1731496-broadcast-channel-phantom-fix
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Nov 2017 16:39:12 +0000 (11:39 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 10 Nov 2017 16:16:11 +0000 (11:16 -0500)
commitd70b343bd9f95dd8a1465488984664a0f526c068
treeee28301ef0430423a3ef64bb9faa1f91e86a7547
parent70eaf2ac18952fca6d74d530dc2b7803e48ec370
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