mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-29 12:50:59 +00:00
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
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user