From accef30e69a4269f5a5a5c59f482613bff87c7e2 Mon Sep 17 00:00:00 2001 From: Pingfan Hu Date: Wed, 4 Dec 2024 12:50:29 -0500 Subject: [PATCH] Revert "function update on cookies.js" This reverts commit dc4754956a32c964283c2c76922d4a0ef32a1045. --- inst/js/cookies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/js/cookies.js b/inst/js/cookies.js index 7a59456e..e951e9c8 100644 --- a/inst/js/cookies.js +++ b/inst/js/cookies.js @@ -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); @@ -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'}); } });