From 13430dc0093b9287cb72dee6302d238cca243c5e Mon Sep 17 00:00:00 2001 From: Brock Allen Date: Mon, 29 Jul 2019 21:55:46 -0400 Subject: [PATCH] fix JS for automatic signout redirect (#3491) * fix JS for automatic signout redirect to wait until iframe is done loading #3475 * revert back to the load event for redirect after signout --- src/IdentityServer4/host/wwwroot/js/signout-redirect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IdentityServer4/host/wwwroot/js/signout-redirect.js b/src/IdentityServer4/host/wwwroot/js/signout-redirect.js index 3d497358c..cdfc5e78c 100644 --- a/src/IdentityServer4/host/wwwroot/js/signout-redirect.js +++ b/src/IdentityServer4/host/wwwroot/js/signout-redirect.js @@ -1,4 +1,4 @@ -$(function () { +window.addEventListener("load", function () { var a = document.querySelector("a.PostLogoutRedirectUri"); if (a) { window.location = a.href;