From: Kathy Lussier Date: Tue, 6 Feb 2018 17:41:19 +0000 (-0500) Subject: LP#1746020 Fix Safari/iOS login issue X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fjboyer%2Flp1746020-broadcast-channel-workaround-signoff;p=working%2FEvergreen.git LP#1746020 Fix Safari/iOS login issue 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 Signed-off-by: Jason Boyer --- diff --git a/Open-ILS/web/js/ui/default/staff/services/auth.js b/Open-ILS/web/js/ui/default/staff/services/auth.js index ec8300579c..b93b6b8631 100644 --- a/Open-ILS/web/js/ui/default/staff/services/auth.js +++ b/Open-ILS/web/js/ui/default/staff/services/auth.js @@ -312,7 +312,7 @@ function($q , $timeout , $rootScope , $window , $location , egNet , egHatch) { 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'}); }