remove sessionStorage params (#1408)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled

This commit is contained in:
Neal Shah
2025-07-31 16:06:37 -07:00
committed by GitHub
parent b78e5c4444
commit 6578d4d91c
+2 -2
View File
@@ -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';