Disappear JsOauthWindow after action is performed

6.19.x
Yevhenii Voevodin 2016-02-26 17:46:01 +02:00
parent 79df78bd29
commit 137f1d0076
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class JsOAuthWindow {
if (href) {
var path = popupWindow.location.pathname;
if (path == (authUrl.substring(authUrl.lastIndexOf("/ws"))) || path == "/dashboard/") {
if (path.startsWith("/ws/") || path.startsWith("/dashboard/")) {
instance.@org.eclipse.che.security.oauth.JsOAuthWindow::setAuthenticationStatus(I)(3);
popupWindow.close();
popupWindow = null;