Works around an issue where users cannot log into the web client using iOS
because Safari, which all browsers running on iOS use to some extent, does not
support BroadcastChannel.
Many thanks to Galen Charlton for providing a diff with this solution!
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
service.logout = function(broadcast) {
- if (broadcast) {
+ if (broadcast && service.authChannel.postMessage) {
// Tell the other tabs to shut it all down.
service.authChannel.postMessage({action : 'logout'});
}