Skip to content

Commit 6578d4d

Browse files
remove sessionStorage params (#1408)
1 parent b78e5c4 commit 6578d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/puter-js/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ export default globalThis.puter = (function() {
125125
this.context = context;
126126
context.services = this.services;
127127

128+
128129
// Holds the query parameters found in the current URL
129-
let URLParams = new URLSearchParams(globalThis.sessionStorage?.getItem("puter_search_params") || globalThis.location?.search);
130+
let URLParams = new URLSearchParams(globalThis.location?.search);
130131

131132
// Figure out the environment in which the SDK is running
132133
if (URLParams.has('puter.app_instance_id')) {
133-
globalThis.sessionStorage?.setItem("puter_search_params", globalThis.sessionStorage?.getItem("puter_search_params") || globalThis.location?.search)
134134
this.env = 'app';
135135
} else if(globalThis.puter_gui_enabled === true)
136136
this.env = 'gui';

0 commit comments

Comments
 (0)