@salesforcedevs/dx-components 0.59.0-avatar-button-15 → 0.59.0-avatar-button-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -107,10 +107,15 @@ export default class AvatarButton extends LightningElement {
|
|
|
107
107
|
} else {
|
|
108
108
|
// Always clear the session token; if not SSO logout, this will also revoke the token with
|
|
109
109
|
// TBID; if SSO logout, that step is already taken care of
|
|
110
|
-
const ifr = document.createElement('iframe');
|
|
111
|
-
ifr.setAttribute('src', 'https://dev1-trailblazer-identity.cs192.force.com/secur/logout.jsp');
|
|
112
|
-
document.body.appendChild(ifr);
|
|
113
110
|
fetch(`${TBID_API_LOGOUT_URL}?isSsoLogout=${isSsoLogout}`); // no need to await this
|
|
111
|
+
if (!isSsoLogout) {
|
|
112
|
+
const ifr = document.createElement("iframe");
|
|
113
|
+
ifr.setAttribute(
|
|
114
|
+
"src",
|
|
115
|
+
"https://dev1-trailblazer-identity.cs192.force.com/secur/logout.jsp"
|
|
116
|
+
);
|
|
117
|
+
document.body.appendChild(ifr);
|
|
118
|
+
}
|
|
114
119
|
}
|
|
115
120
|
};
|
|
116
121
|
|