File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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' ;
You can’t perform that action at this time.
0 commit comments