Skip to content

Commit

Permalink
Revert "function update on cookies.js"
Browse files Browse the repository at this point in the history
This reverts commit dc47549.
  • Loading branch information
pingfan-hu committed Dec 4, 2024
1 parent dc47549 commit accef30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/js/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $(document).ready(function() {
console.log("Initializing with session ID:", sessionId, "Retry count:", retryCount);

if (sessionId) {
Shiny.onInputChange('stored_session_id', sessionId);
Shiny.setInputValue('stored_session_id', sessionId, {priority: 'event'});
} else if (retryCount < 3) {
// Retry after a short delay
setTimeout(() => initializeSession(retryCount + 1), 100);
Expand All @@ -98,6 +98,6 @@ $(document).on('shiny:connected', function(event) {
const sessionId = surveydownCookies.get();
console.log("Shiny reconnected, session ID:", sessionId);
if (sessionId) {
Shiny.onInputChange('stored_session_id', sessionId);
Shiny.setInputValue('stored_session_id', sessionId, {priority: 'event'});
}
});

0 comments on commit accef30

Please sign in to comment.