Skip to content

Commit 96e06ff

Browse files
author
Eiman Eltigani
committed
remaining formatting reverts
1 parent e59ca1c commit 96e06ff

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

web-integrations/google-secure-signals/client-server/views/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
window.location.href = '/';
103103
});
104104

105-
sdk.callbacks.push((eventType, payload) => {
105+
sdk.callbacks.push((eventType, payload) => {
106106
if (eventType === "SdkLoaded") {
107107
sdk.init({
108108
baseUrl: "<%- uidBaseUrl %>",
@@ -113,8 +113,8 @@
113113
sdk.callbacks.push((eventType, payload) => {
114114
if (eventType === 'InitCompleted') {
115115
<% if (identity !== null && typeof identity !== 'undefined') { %>
116-
// If identity is set, set it on the SDK
117-
if (sdk.isLoginRequired()) {
116+
// Server provided an identity, set it
117+
if (sdk.isLoginRequired()) {
118118
sdk.setIdentity(<%- JSON.stringify(identity) %>);
119119
} else {
120120
// Identity already exists, just update GUI

web-integrations/google-secure-signals/server-side/views/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
}
4949

50-
// No "token ready" event on server-side; poll so we update the UI after the SDK writes to localStorage.
50+
// Update Secure Signals display after SDK has time to load and fetch token, allowing for additional tries
5151
[1000, 2000, 3000].forEach((ms) => setTimeout(updateSecureSignals, ms));
5252

5353
$('#logout').click(() => {

0 commit comments

Comments
 (0)