Comment 4 for bug 1746020

Revision history for this message
Galen Charlton (gmc) wrote : Re: Iphone

Upon a quick test in Evergreen master with Safari 9.1.2, I note that the specific reason why the login prompt isn't being rendered has to do with our use of BroadcastChannel, which Safari doesn't support. The following patch works around the issue:

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 ec83005..b93b6b8 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'});
         }