From c8fdd86af30c5c5b1c54c011505f625fb28b1b80 Mon Sep 17 00:00:00 2001
From: Chris Beer <cabeer@stanford.edu>
Date: Thu, 17 Sep 2020 07:44:29 -0700
Subject: [PATCH] Fix openWindow signature

---
 __tests__/src/components/IIIFAuthentication.test.js | 2 +-
 src/components/IIIFAuthentication.js                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/__tests__/src/components/IIIFAuthentication.test.js b/__tests__/src/components/IIIFAuthentication.test.js
index c43d762cf..cbf6a8023 100644
--- a/__tests__/src/components/IIIFAuthentication.test.js
+++ b/__tests__/src/components/IIIFAuthentication.test.js
@@ -86,7 +86,7 @@ describe('IIIFAuthentication', () => {
 
       wrapper.find(WindowAuthenticationBar).simulate('confirm');
 
-      expect(openWindow).toHaveBeenCalledWith('http://example.com/logout', 'centerscreen');
+      expect(openWindow).toHaveBeenCalledWith('http://example.com/logout', undefined, 'centerscreen');
       expect(resetAuthenticationState).toHaveBeenCalledWith({
         authServiceId: 'http://example.com/auth', tokenServiceId: 'http://example.com/token',
       });
diff --git a/src/components/IIIFAuthentication.js b/src/components/IIIFAuthentication.js
index 098b6ca4a..b3ed603f2 100644
--- a/src/components/IIIFAuthentication.js
+++ b/src/components/IIIFAuthentication.js
@@ -45,7 +45,7 @@ export class IIIFAuthentication extends Component {
       accessTokenServiceId, authServiceId, features,
       logoutServiceId, resetAuthenticationState, openWindow,
     } = this.props;
-    openWindow(logoutServiceId, features);
+    openWindow(logoutServiceId, undefined, features);
 
     resetAuthenticationState({ authServiceId, tokenServiceId: accessTokenServiceId });
   }
-- 
GitLab