From c1edfced5c4cc8ec271f79f0d907de7b1a3dc832 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Tue, 6 Feb 2018 12:41:19 -0500 Subject: [PATCH] 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 Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/services/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}); } -- 2.11.0