Skip to content

Commit

Permalink
Check for WireCloud 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed Jul 8, 2021
1 parent dd731e9 commit 68ebd3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wirecloud/keycloak/static/js/keycloak/sso.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
};
}

if (Wirecloud.contextManager.get("mode") !== "embedded") {
const version = new Wirecloud.Version(Wirecloud.contextManager.get("version"));
if (version.compareTo(new Wirecloud.Version("1.4")) >= 0 && Wirecloud.contextManager.get("mode") !== "embedded") {
const dialog = new Wirecloud.ui.MessageWindowMenu(
utils.gettext("Browser will be reloaded to accomodate to the new session info"),
utils.gettext("User Session Updated")
Expand Down

0 comments on commit 68ebd3e

Please sign in to comment.