From 6578d4d91c825fdc6493641cccd02c89e3bb6c27 Mon Sep 17 00:00:00 2001 From: Neal Shah <30693865+ProgrammerIn-wonderland@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:06:37 -0700 Subject: [PATCH] remove sessionStorage params (#1408) --- src/puter-js/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/puter-js/src/index.js b/src/puter-js/src/index.js index 11fb46dd1..4dbc9b5a2 100644 --- a/src/puter-js/src/index.js +++ b/src/puter-js/src/index.js @@ -125,12 +125,12 @@ export default globalThis.puter = (function() { this.context = context; context.services = this.services; + // Holds the query parameters found in the current URL - let URLParams = new URLSearchParams(globalThis.sessionStorage?.getItem("puter_search_params") || globalThis.location?.search); + let URLParams = new URLSearchParams(globalThis.location?.search); // Figure out the environment in which the SDK is running if (URLParams.has('puter.app_instance_id')) { - globalThis.sessionStorage?.setItem("puter_search_params", globalThis.sessionStorage?.getItem("puter_search_params") || globalThis.location?.search) this.env = 'app'; } else if(globalThis.puter_gui_enabled === true) this.env = 'gui';